Page 1 of 1
Weird PayPal Issue
Posted: Fri Feb 27, 2026 6:58 pm
by cbs
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
Re: Weird PayPal Issue
Posted: Fri Feb 27, 2026 7:04 pm
by BrockleyJohn
Paypal doesn't believe you - they're saying it's not correct
Is it a sandbox v live issue?
Re: Weird PayPal Issue
Posted: Fri Feb 27, 2026 7:10 pm
by cbs
Paypal Environment
Live
Re: Weird PayPal Issue
Posted: Fri Feb 27, 2026 7:10 pm
by cbs
Not had it in sandbox mode
Re: Weird PayPal Issue
Posted: Fri Feb 27, 2026 7:12 pm
by cbs
Re: Weird PayPal Issue
Posted: Sun Mar 01, 2026 10:29 am
by BrockleyJohn
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)
Re: Weird PayPal Issue
Posted: Sun Mar 01, 2026 10:32 am
by BrockleyJohn
I take it you're running the Paypal Standard for Phoenix addon; which version of the addon?
Re: Weird PayPal Issue
Posted: Mon Mar 02, 2026 8:11 am
by cbs
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?
Re: Weird PayPal Issue
Posted: Thu Mar 26, 2026 3:14 pm
by cbs
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.