By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,745 Members | 1,897 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,745 IT Pros & Developers. It's quick & easy.

Is there a way to tell paypal server is down on postback?

100+
P: 258
Hi everyone
As you may know there's a callback mechanism in Paypal which posts the completed transactions details back to the server.

For example: If we have a payment HTML form which redirects the user to paypal to pay for the product we can have a hidden field in the form to tell Paypal to post back the transactions details to our website by assigning a hidden field like this.

Expand|Select|Wrap|Line Numbers
  1. <input type='hidden' name='notify_url' value='www.example.com/authorizer.php'>
  2.  
Now, There's also a built-in retry mechanism in Paypal which retries to reach our server if any problem occures (like server downtimes)

This works fine but what if the server is NOT down but it's not possible to reach the MySQL DB to save the record? Paypal will think the authorization has been done which is not true.

My question is if there's a way to simulate a 404 Error for paypal if any server problem happens? Just to tell Paypal to retry posting data.

Thanks
Behzad
Oct 10 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.