You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With PR #2523 the orders are being received without payment. The PR solves the fatal error resulting from not expected responses but it simply ignores them, while it should handle them correctly instead.
To Reproduce
When a customer saves the credit card for future payments, this results in an unhandled flow in \WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway::process_payment that lets the issue I'm experiencing.
When these customers place a new order, the following happens via API:
A payment token request for the customer is done and matched with the local ones for him.
The payment order is created with a 200 OK response, instead of 201 Created
Before PR #2523 this response produced a fatal error because of null call exception, now it is simply ignored. Doing so the processing goes on and produces an order being received but without being paid and also without any notification to the merchant.
The response should be handled with a redirect to the payer-action reported in the "links" section.
Expected Behavior
The processing should continue, redirecting the customer to the 3DS verification process (the "payer-action" href inside the response body).
Actual Behavior
The order is received, no payment is done and no notifications are sent to the merchant. The (wrong) order placement is never notified and the merchant cannot be aware of the issue.
Environment
WordPress 6.6.2
WooCommerce 9.2.3
WooCommerce PayPal Payments 2.9.4
The text was updated successfully, but these errors were encountered:
Just a clarification: the order is only shown as received in the customer’s checkout final step view. It is not actually completed; in fact, it appears as cancelled in the orders list.
Describe the Bug
With PR #2523 the orders are being received without payment. The PR solves the fatal error resulting from not expected responses but it simply ignores them, while it should handle them correctly instead.
To Reproduce
When a customer saves the credit card for future payments, this results in an unhandled flow in \WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway::process_payment that lets the issue I'm experiencing.
When these customers place a new order, the following happens via API:
Before PR #2523 this response produced a fatal error because of null call exception, now it is simply ignored. Doing so the processing goes on and produces an order being received but without being paid and also without any notification to the merchant.
The response should be handled with a redirect to the payer-action reported in the "links" section.
Expected Behavior
The processing should continue, redirecting the customer to the 3DS verification process (the "payer-action" href inside the response body).
Actual Behavior
The order is received, no payment is done and no notifications are sent to the merchant. The (wrong) order placement is never notified and the merchant cannot be aware of the issue.
Environment
The text was updated successfully, but these errors were encountered: