Hidden "return" value does not override the default return url-2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just set up a nice pay now button for my website and want to redirect the user to a specific page after checkout. I am attempting to do this via the hidden input named "return", just as paypal documentation specifies:
<INPUT TYPE="hidden" NAME="return" value="'$successful_url'">
the $return_url, in my case, is dynamically generated via php and outputs something like: https://example.com/confirm_transaction.php?product_id=1
My problem is, that, despite using the correct syntax in my HTML form, paypal always redirects the customer (which of course is me as I am testing my implementation) to the default return URL specified in my (business accounts') account settings.
Any help with this issue would be greatly appreciated.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We experienced this issue appearing in August 2020 as well.
Looks like PayPal changed the Button API and no longer honors the legacy "return" URL:
https://www.paypal-community.com/t5/REST-APIs/SmartButtons-Return-URL-s-not-working/td-p/1793386#

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Instant Payment Notification url is never called after payment in REST APIs
- Paypal Buttons - No Money Actually Moved or any sign of transaction other than API logs in PayPal Payments Standard
- Donate button page for PLN with 4 payment methods instead of 2 (PayPal and cards) in PayPal Payments Standard
- AUTHENTICATION_FAILURE using transaction history api in REST APIs
- .. does not ship to this location. Please use a different address. in PayPal Payments Standard