Steps for Setting up Paypal thank you page:
Step 1: Log into your PayPal account.
Step 2: Go to My Account -> Profile
Step 3: Click on the selling tools link.
Step 4: Check the selling online section
Step 5: Look for “Website Preferences” and click the “Update” link on the far right hand corner of this row. See the following screenshot for reference
Step 6: You should now be on the “Website Preferences” menu. (Direct link https://www.paypal.com/businessmanage/preferences/website/)
a) Turn on the “Auto Return” for Website Payments
b) Enter a URL in the Return URL field (your thank you page URL)
c) Scroll to the bottom of the page and click the Save button
Note that PayPal does not do auto return if the customer doesn’t pay using their PayPal account.
Expected Behavior After You Enable Auto Return
Customer pays via paypal account -> Gets automatically redirected to your thank you page.S