views:

486

answers:

4

Hi all,

the company I work for want to use a "hosted payment form" to charge our customers. A question came up on how we can populate the "payment form" automatically with information from one of our other system. We have no control over the hosed payment form, and we have to use IE. Is this possible at all? And if so, how can this be done?

If something is unclear, please let me know...

+1  A: 

Unless your payment gateway allows you to pass through data in a set API (which lots do!), you'd need to take control (and responsibility) for your payment form.

I say responsibility because you would have to prove to your merchant account provider that everything is secure. This will probably incur some security testing fees too.

So check with your merchant gateway first. Lots of systems have the means to accept data from your site and their tech support will be able to give you a straight answer immediately. Otherwise you'd have to switch it over so you process all the data yourself which, just for making things easier, isn't worth it IMO.

Oli
+2  A: 

Assuming that you are essentially embedding the contents of a remote form in a frame/iframe, the you should be able to use some javascript to set values for the fields - field.value = "xxxx".

That solution of course depends on the form remaining the same - any changes to the remote form will require you to update your script.

If you are "handing off" to a remote site (redirect) that post's back to your site when payment is complete, then unless the remote site offers an API / a way of passing request parameters through, then you are going to be out of luck,

iAn
A: 

In this case our "provider" which hosts then payment form dont have any means for us to pass any information to the payment form in advance (eg. before its loaded in the browser). It's for security reasons the company whant to use a hosted payment form.

I guess that our problem in this case (avoid a lot of extra work for the people chargeing our customers) must be quite common...

Ausgar
A: 

Thanks iAn.

So one possible way is to set up our own webpage, add our customer information to the url and then use javascript to populate the payment providers "web page" in an iframe?

Does this seem like a possible solution?

Ausgar