|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have been trying to figure this out for a while and would appreciate any help.
I use Worldpay to process payments for my site. All of the processing is handled on their server, so I have no idea what happens if the shopper clicks the "buy now" (form submit) button. I would really like to find someway to log that the form was submitted and the shopper sent to Worldpay. I want to use this to help me track where the shopping cart is being abandoned. I have tried calling a php script as the action on the form, from which I could log any data I need. The problem is that I can't get the POST data to Worldpay in any way that they like. I've tried using header(), cURL, fsockopen (my host doesn't have openssl installed). I would appreciate any help pointing me in the right direction (an example would be fantastic). I am happy to use something other than PHP -- can perl help. Thanks in advance for your help. |
|
|||
|
We use curl with openssl to talk to Worldpay from our PHP shopping cart, as far as I'm aware Worldpay won't accept data over a standard http connection it must be https.
Therefore I'd suggest asking the host to install openssl for curl if they won't then change hosts. |
|
|||
|
Thanks Speed,
I installed cURL and openssl on my development system, but I haven't been able to figure it out! I can get the POST off to Worldpay, but the page that comes back appears as if it is on my server. As a result all of the relative links on worldpay's page don't work (images etc.). Of course, Worldpay doesn't like it.. Can you recommend a resource helping me to learn cURL? I've been through all of the documenation on their site, but I just can't get my head around it! Thanks again and it sounds like I need to persevere with cURL. Cheers, |
|
|||
|
I miss read what you were after, but if you are getting data back then the post works.
The reason that everything appears to be on your server is that the PHP application is acting as the browser and then displaying the results to the visitor (you). The PHP app is running on your domain it's output is on your domain and therefore all relative URLs are on your domain. If you read the HTML returned you can insert a <base href="blah" /> tag into the head or rewrite the paths to be absolute. Either way the page will show to the visitor as if it is on your domain and not Worldpays, the page will no longer be shown over an encrypted link unless you have an SSL certificate for your domain. I'm assuming you are using Select Checkout, it would be better to collect items into a cart and then pass all the information to the Select Junior interface, as then you can track just about anything you want while leaving WP interface alone, it's only the final card entry stages you can't see. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |