When completing a purchase on PayPal it keeps taking me back to the cart page rather than the checkout successful page, any one have any ideas?
The PDT Identity Token is correct
Paypal sends an email saying
RESPONSE:
FAIL
Error: 4020
Weird PayPal Issue
-
BrockleyJohn
- Certified Developer
- Posts: 173
- Joined: Mon Mar 01, 2021 5:37 pm
- Phoenix Version:
- : Buy Me A Beverage
- Has thanked: 2 times
- Been thanked: 30 times
Re: Weird PayPal Issue
Paypal doesn't believe you - they're saying it's not correct
Is it a sandbox v live issue?
Is it a sandbox v live issue?
-
cbs
- Member
- Posts: 46
- Joined: Tue Oct 26, 2021 9:42 am
- Phoenix Version: v1.1.0.6
- Has thanked: 8 times
- Been thanked: 6 times
Re: Weird PayPal Issue
I did notice the Instant Payment Notification URL was wrong,
On the addon it say "https://site.co.uk/ext/modules/payment/ ... rd_ipn.php" but it should be "https://site.co.uk/ext/modules/payment/ ... rd_ipn.php"
On the addon it say "https://site.co.uk/ext/modules/payment/ ... rd_ipn.php" but it should be "https://site.co.uk/ext/modules/payment/ ... rd_ipn.php"
-
BrockleyJohn
- Certified Developer
- Posts: 173
- Joined: Mon Mar 01, 2021 5:37 pm
- Phoenix Version:
- : Buy Me A Beverage
- Has thanked: 2 times
- Been thanked: 30 times
Re: Weird PayPal Issue
Has this been working previously and stopped, or never worked on this installation?
You are right that the IPN URL is incorrectly displayed in the module description, however it's passed correctly in the transaction details and I believe this overrules the notification url in your paypal dashboard.
I've just tested without getting the error so am reduced to suggesting you double check that the identity token is correctly and completely copied from paypal and doesn't have any extra invisible characters on either end (spaces, tabs, line feeds and so on)
You are right that the IPN URL is incorrectly displayed in the module description, however it's passed correctly in the transaction details and I believe this overrules the notification url in your paypal dashboard.
I've just tested without getting the error so am reduced to suggesting you double check that the identity token is correctly and completely copied from paypal and doesn't have any extra invisible characters on either end (spaces, tabs, line feeds and so on)
-
BrockleyJohn
- Certified Developer
- Posts: 173
- Joined: Mon Mar 01, 2021 5:37 pm
- Phoenix Version:
- : Buy Me A Beverage
- Has thanked: 2 times
- Been thanked: 30 times
Re: Weird PayPal Issue
I take it you're running the Paypal Standard for Phoenix addon; which version of the addon?
-
cbs
- Member
- Posts: 46
- Joined: Tue Oct 26, 2021 9:42 am
- Phoenix Version: v1.1.0.6
- Has thanked: 8 times
- Been thanked: 6 times
Re: Weird PayPal Issue
Its a new install of Phoenix v1.1.0.6 on php8.3.
Its the PayPal Standard Payments, cant see a version number on the addon.
I've copied the PDT several time and there is nothing extra there.
Does it take a while for PayPal to update the Instant Payment Notification and Notification URL?
Its the PayPal Standard Payments, cant see a version number on the addon.
I've copied the PDT several time and there is nothing extra there.
Does it take a while for PayPal to update the Instant Payment Notification and Notification URL?
-
cbs
- Member
- Posts: 46
- Joined: Tue Oct 26, 2021 9:42 am
- Phoenix Version: v1.1.0.6
- Has thanked: 8 times
- Been thanked: 6 times
Re: Weird PayPal Issue
Found the issue, it was a typo in my Google Analytic file so rolled it back to the one from zipurman and it works fine. Not sure why Stripe worked and not PayPal but that fixed it.