How to Configure PayPal Sandbox Auto Return and Payment Data Transfer


At the time of integrating PayPal payment gateway in the website, you needs test the transaction on sandbox environment. In that case, some configuration is needed for redirecting buyer back to the website and receive the payment data. Without this configuration, you’ll see the PayPal auto return URL is not working and facing the PayPal sandbox not redirecting issue.

We are going to tell you the process of configuring PayPal Sandbox Auto Return and Payment Data Transfer.

  • Log into your PayPal Business account from here – https://www.sandbox.paypal.com
    paypal-sandbox-business-account-login-by-codexworld
  • After successfully logged in, you would be redirected to the account overview page.
    paypal-sandbox-account-overview-page-by-codexworld
  • Click on Profile link under the My Account tab.
    paypal-sandbox-account-profile-by-codexworld
  • Click on Website payments preferences link from the Hosted payment settings section.
    paypal-website-payments-preferences-link-by-codexworld
  • Auto Return: It helps to redirect buyer back to your website immediately after payment completion.
    • Under the Auto Return for Website Payments section and turn Auto Return on. Also enter the redirect URL in the Return URL field.
      paypal-sandbox-auto-return-return-url-by-codexworld
  • Payment Data Transfer: This will allows you to receive payment notification on return URL page.
    • Under the Payment Data Transfer (optional) section turn on Payment Data Transfer. In order to use this feature, you must turn on Auto Return.
      paypal-sandbox-payment-data-transfer-by-codexworld
  • Click on the Save button.

Now buyer would be automatically redirected to the specified Return URL and the Payment Information would be sent as a query string to the Return URL.

3 Comments

  1. Ishan Said...
  2. Shrey Said...

Leave a reply

Connect With CodexWorld