Forum Moderators: buckworks
i have a script on my server to process the payment result, what do i have to do to enable it? ie how do i get the callback feature to feed into my script? at the moment - it is processing the (test) transaction - sending a confirmation email saying everything was a success, but the page stays at the world pay site - it doesnt go back to my site.
any ideas please?
thanks tim
Firstly, does your server see the callback?
If not, login to the WorldPay customer management center and make sure that a callback URL is specified in your site configuration. Alternatively you can POST a callback URL to WorldPay using the "MC_callback" variable.
Once you've established that the callback is working, you can make your callback script return a page of HTML to WorldPay, which WorldPay in turn displays to the user.
Within this HTML you need to include the placeholder <WPDISPLAY ITEM=banner>. WorldPay replaces this with the transaction details.
If you want to have the user return to a specific page on your site once they're done paying (or not paying!) just include a link or form at the bottom of the HTML you return to WorldPay. To return them to a page that is specific to the user (if you are not using server side session variables) then you call always use the transaction details that were POST'ed to you by WorldPay.
Hope this helps!