Lücks
Lücks

Reputation: 3984

Paypal: Standard Checkout Return

I have a custom button that is calling paypal, standard checkout method. It's just like this: Passing price variable to PayPal with custom button

If the customer uses a credit card and paypal accept, then paypal redirect to my site and I "mark" the product as paid. But, after a while the bank reject it. How can I get this information? If I'm using standard checkout.

Upvotes: 0

Views: 145

Answers (1)

Drew Angell
Drew Angell

Reputation: 26036

Sounds like you're getting an e-check that hasn't cleared. Then a couple of days later when the payment should clear it fails for some reason.

The best way to handle this is to utilize Instant Payment Notification. Once configured, it will POST transaction data to a listener script that you have setup. This script can receive that data and update your database, send out email notifications, or anything else you want to automate based on different transaction types.

In the case of e-check the IPN data would have a payment_status of Pending, and then when that payment status changes you would get another IPN with the same transaction ID, but the new status. That way you can wait to deliver goods until the payment status of any transaction is actually Completed as opposed to anything else.

Upvotes: 1

Related Questions