I created a new business paypal account and I set configuration like explained.
======================================================================= 1. Log in to your PayPal account (click here to create your account). 2. Click the Profile subtab. 3. Click Website Payment Preferences in the Seller Preferences column. 4. Under Auto Return for Website Payments, click the On radio button. 5. For the Return URL, enter the URL on your site that will receive the transaction ID posted by PayPal after a customer payment (https://localhost:44357/Plugins/PaymentPayPalStandard/PDTHandler). 6. Under Payment Data Transfer, click the On radio button. 7. Click Save. 8. Click Website Payment Preferences in the Seller Preferences column. 9. Scroll down to the Payment Data Transfer section of the page to view your PDT identity token. =====================================================================
MY PROBLEM: When I confirm an order I get a paypal error screen, only if I set Sandbox option I get paypal login screen.
Paypal cant find your local address https://localhost:44357 You need to make a public address that will go to your website in visual studio (or in IIS) In the DNS on you computer define an accessible domain e.g. http://test.yourwebsitedomain.com that points to you webserver (usually the IP or your computer)
In Visual studio Right mouse click on Nop.Web -> Select Properties Go to Debug -> Enter App URL http://test.yourwebsitedomain.com In Paypal enter http://test.yourwebsitedomain.com/Plugins/PaymentPayPalStandard/PDTHandler
Check the address http://test.yourwebsitedomain.com/Plugins/PaymentPayPalStandard/PDTHandler is working and goes to your handler in debug to make sure everything is working before you test it with PayPal