Weird PayPal Issue

Open to all! Ask other shopowners for help.
Post Reply
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

Weird PayPal Issue

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
BrockleyJohn
Certified Developer
Posts: 173
Joined: Mon Mar 01, 2021 5:37 pm
Phoenix Version:
Has thanked: 2 times
Been thanked: 30 times

Re: Weird PayPal Issue

Post by BrockleyJohn »

Paypal doesn't believe you - they're saying it's not correct

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

Post by cbs »

Paypal Environment
Live
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

Post by cbs »

Not had it in sandbox mode
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

Post by cbs »

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"
BrockleyJohn
Certified Developer
Posts: 173
Joined: Mon Mar 01, 2021 5:37 pm
Phoenix Version:
Has thanked: 2 times
Been thanked: 30 times

Re: Weird PayPal Issue

Post 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)
BrockleyJohn
Certified Developer
Posts: 173
Joined: Mon Mar 01, 2021 5:37 pm
Phoenix Version:
Has thanked: 2 times
Been thanked: 30 times

Re: Weird PayPal Issue

Post by BrockleyJohn »

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

Post 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?
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

Post 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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply