Previous Thread
Next Thread
Print Thread
Hop To
Joined: Aug 2006
Posts: 95
G
Geoff Offline OP
Journeyman
OP Offline
Journeyman
G
Joined: Aug 2006
Posts: 95
What is the “auto return” URL we are suppose to use with PayPal for our subscriptions?

Attached Images
B614815A-20CC-4F7E-BD2A-93617076BE15.png

I am a Superstar! Testing signature here
Joined: Apr 2004
Posts: 1,825
Likes: 108
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,825
Likes: 108
FROM: \templates\default\subscription_confirm.tpl

It looks like
Code
<input type="hidden" name="return" value="{$config.FULL_URL}/ubbthreads.php?ubb=subscription_process&thanks=thanks">
<input type="hidden" name="cancel" value="{$config.FULL_URL}/ubbthreads.php?ubb=subscription_process&cancel=cancel">

Though IIRC, the user should be sent back to the page they came from (see below), so the UBB.threads page can deal with the returned values of either;
"thanks" - thanks for the payment.
or
"cancel" - process was terminated or quit.

Knowing this, that return page would most likely be:
for Spider-friendly URLs - /ubbthreads.php/ubb/subscription_process
or
for Spider-friendly URLs - /ubbthreads.php?ubb=subscription_process

Last edited by isaac; 09/26/2019 11:33 PM. Reason: fix typos... round two.

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2004
Posts: 1,825
Likes: 108
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,825
Likes: 108
Since its been over a year since I last updated this specific code, I've done some quick refresher-reading on the topic.

The PayPal developer docs says:
Quote
By default, auto return is disabled.
SOURCE: https://developer.paypal.com/docs/classic/admin/checkout-settings/#customize-the-checkout-experience

And IIRC, as of UBB.threads 7.6.2, the return URL is sent to PayPal at the time of the transaction request. When the PayPal transaction is finished, that URL is used along with the PayPal results.

Basically, there is no need to enable "auto return" (or anything special) on your PayPal account, other than having a PayPal Business account and allowing payments to be accepted.

Prior versions of UBB.threads (7.6.1 and older) required PayPal "auto return" to be enabled since that portion of UBB.threads remained unwritten, and the user would just be dumped in to either a PayPal "thank you" page with zero links on it, or they would be returned to a broken UBB.threads page where they needed to contact the forum admin to manually update the subscription.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Aug 2006
Posts: 95
G
Geoff Offline OP
Journeyman
OP Offline
Journeyman
G
Joined: Aug 2006
Posts: 95
Thank you. I will turn their auto return setting to off and give that a try.

https://www.paypal.com/businessmanage/preferences/website


I am a Superstar! Testing signature here

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PM limits
by jjjjj - 01/07/2021 12:59 PM
FAQ is blank?
by Bad Frog - 01/06/2021 12:01 PM
IP Addresses Of Users
by tinker123 - 01/03/2021 3:07 PM
User display name gets chopped
by - 12/25/2020 1:08 PM
Who's Online Now
2 members (Justin1524, UBBSystems), 61 guests, and 56 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5