Previous Thread
Next Thread
Print Thread
Hop To
Subscription’s Auto Return URL for PayPal #263211 09/27/2019 12:10 AM
Joined: Aug 2006
Posts: 95
Geoff Offline OP
Journeyman
OP Offline
Journeyman
Joined: Aug 2006
Posts: 95
What is the “auto return” URL we are suppose to use with PayPal for our subscriptions?

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

I am a Superstar! Testing signature here
Re: Subscriptions Auto Return URL for PayPal [Re: Geoff] #263212 09/27/2019 12:28 AM
Joined: Apr 2004
Posts: 1,530
isaac Online Splat
UBB.threads Developer
Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,530
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/27/2019 12:33 AM. Reason: fix typos... round two.

Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Subscriptions Auto Return URL for PayPal [Re: Geoff] #263213 09/27/2019 1:10 AM
Joined: Apr 2004
Posts: 1,530
isaac Online Splat
UBB.threads Developer
Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,530
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 // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Subscriptions Auto Return URL for PayPal [Re: Geoff] #263224 09/28/2019 8:46 AM
Joined: Aug 2006
Posts: 95
Geoff Offline OP
Journeyman
OP Offline
Journeyman
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

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Having issue with redirects to UBB classic URLs
by amciotola - 10/16/2019 1:11 AM
Unable to save General settings
by amciotola - 10/13/2019 4:23 AM
I see signature line images, but no avatars
by Morgan - 10/12/2019 2:21 PM
Show PDF
by Geoff - 10/09/2019 1:33 AM
Subscription’s Auto Return URL for PayPal
by Geoff - 09/27/2019 12:10 AM
Who's Online Now
2 registered members (JAISP, isaac), 91 guests, and 426 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20190930)