Click here to Skip to main content
15,898,587 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am using the the world pay xml redirect method to take payments in my application. I want to record the last 4 digits of the card used by the customer. Worldpay have said they post XML Order notification to a url I set in the merchant interface. I am unable to capture the POST XML order notification. Any body has any ideas suggestion.
My application is an asp.net with C# web application.

Below is the url that the world pay has given me.

http://support.worldpay.com/support/kb/gg/ordernotifications/ordernotifications.htm#Notification_channels.html%3FTocPath%3DDelivery%2520of%2520Order%2520Notifications%7C_____3[^]

What I have tried:

I tried to contact world pay with my order details they said
Thank you for your response.

Our logs show that we tried to deliver the notification but received a HTTP 302 response with the following output

"Object moved to here"

We require a HTTP 200 response with [OK] printed out of your script as explained here.
Posted
Comments
F-ES Sitecore 7-Mar-16 9:14am    
The url they are posting to is returning a redirect, so the code might be doing a

Response.Redirect

somewhere, or you might have url rewriting in place that is doing the redirect. Given the information you've provided it's hard to say much more than that.
SeethaPallavi 7-Mar-16 10:19am    
Thank you for you reply. I have a processing page in between where I need to process their order notification and then redirect the user to confirmation page. So it is redirecting to the confirmation page correctly according to my code, but they say I need to send [OK] response to them how do I do that in C# Page_Load of my processing page?
F-ES Sitecore 7-Mar-16 10:37am    
I've never implemented WorldPay so I'm only reading between the lines (this is why you should consult their documentation which I'm sure covers all of this) but I assume they post the data to a url you set and that post is made behind-the-scenes as it were, it isn't part of the normal flow your customer goes though, it is a post separate from that flow. In the page that receives this data the data will also contain an identifier that lets you know which payment it's for, and you can then store the four digits against that payment\customer.

The page that receives this post simply has to do nothing, just return any old html and with that html it will also send a "200 OK" and that is the signal to WorldPay that you received the data ok. If the page that takes this post does a redirect then it returns a 302 code so WorldPay assumes there is a problem.
[no name] 7-Mar-16 10:48am    
Sorry for this: Why should I trust to any "pay Service" anymore if I read something like this? Yep, I decided not to trust before this ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900