Payment transaction is not being saved.

Created on 9 October 2017, about 8 years ago
Updated 18 August 2025, 2 months ago

Short story: I bought a product using paypal_wps (in sandbox mode) completed checkout in paypal got charged, returned to site viewed the order and there was no payment registered to the order ( even after an excessive amount of time )

Long story: Website was working normally. With no known reason paypal_wps stopped working. I switched to sandbox to do some testing and found that the payment was never being registered or at least sometimes.

In my testing I had the following three cases in commerce_paypal_wps logs:
Customer returned from PayPal with the following POST data:
1. with an empty array
2. with a correct complete response but the payment did not get saved
3. with a correct complete response and the payment saved.

To make sure this was not an issue caused by custom or whatnot code/modules. I've tested this on a new commerce kickstart installation and got the same results.
I even went to more lengths to create another sandbox account just to make sure it wasn't settings from paypal. I have also tested the checkout process with paypal express checkout and that one works fine.

Reproduce Steps:
1. Clean installation of commerce kickstart.
2. Create/use a paypal sandbox account.
3. Enable paypal_wps and configure your info.
4. Buy something.

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

PayPal WPS

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024