Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change site return address?


rudolfl

Recommended Posts

Hi all,

This question is a bit out of scope of normal use of PayPal app. 

I need a way to tell PayPal where to return after payment is completed or if user cancels payment.

Does anyone know where in the code this address is specified? I will be able to go from there.

Thanks,

Rudolf

Link to comment
Share on other sites

You set this up in your paypal account settings, you can use , Auto return the buyer to your website. Instructions on the paypal website.

https://developer.paypal.com/docs/classic/admin/checkout-settings/#

Auto return the buyer to your website

With Auto return for PayPal payments, buyers are not required to click a button to return to your website after they complete their payments with PayPal. Auto Return applies to all PayPal Payments Standards payment buttons, including Buy Now, Shopping Cart, Subscription, and Donate buttons.

Auto Return shortens the checkout flow and immediately brings your buyers back to your website upon payment completion. To set up Auto Return, you need to turn it on in your PayPal account profile and enter the return URL that will be used to redirect your buyers back to your site. For more information on how to enable this feature in your PayPal account, see Auto return in the Merchant setup and administration guide.

 

Override the return URL on individual transactions

With Auto return turned on in your account profile, you can set the value of the return HTML variable on individual transactions, which overrides the value of the return URL stored in your PayPal account profile. For example, you might want to redirect payers to a URL on your site that is specific to that person, perhaps with a session-id or other transaction-related data included in the URL.

To set the return URL for individual transactions, include the return variable in the HTML form:

 

<INPUT TYPE="hidden" NAME="return" value="The-Page-On-Your-Site-To-Which-Buyer-Returns;">
Edited by JcMagpie

 

Link to comment
Share on other sites

For paypal_standard, see the process_button method

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Link to comment
Share on other sites

Thank you for replies.

 

I am using PayPal Express.

PayPal app uses GET method to call paypal.com/webscr. So forms and HTML variables will not quite work in this case.

 

Rudolf

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...