Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal Payment Standard: Callback URL

On Paypal Sandbox:

After logging in using a test account and then clicking the "Pay Now" button, the user is redirected to "Thanks for your order" page inside Paypal. The page has three(3) links below the message that says:

Return to Test Store
Go to PayPal account overview
Add funds from your bank

Clicking the "Return to Test Store" will redirect me to the return URL I specified on my query string. This marks the order as "Completed" or whatever the value of the payment_status returned by Paypal is.

The Problem: Clicking the other links bypasses the return URL and goes to user account profile which leaves the order incomplete even if the transaction was successfully paid because the return URL has the script to mark the outcome of the transaction.

The Question: Is there a way to bypass the Thank you page and just redirect to my return URL so the transaction can be concluded accordingly?

BTW, I have my Test Business Account set to autoredirect to the return URL after the order.

like image 268
Jhourlad Estrella Avatar asked May 18 '11 04:05

Jhourlad Estrella


People also ask

What is callback URL in payment gateway?

Callback URL and webhook are used to get the status of the transaction for a payment source.

How do I create a return URL in PayPal?

The Website Payment Preferences page appears. Under Auto Return for Website Payments, click the On radio button to enable Auto Return. In the Return URL field, enter the URL to which you want your payers redirected after they complete their payments. NOTE: PayPal checks the Return URL that you enter.


1 Answers

You want to read about PayPal's Instant Payment Notification and about Identifying Your IPN Listener to PayPal.

You have the option to be notified whenever a transaction takes place, regardless of what users clicks on. Paypal's servers will make requests to a Notification URL you provide and give you informations about that transaction.

like image 168
Tudor Constantin Avatar answered Sep 26 '22 02:09

Tudor Constantin