Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed payments result in orders completing successfully #529

Open
alexryall opened this issue Sep 14, 2023 · 1 comment
Open

Failed payments result in orders completing successfully #529

alexryall opened this issue Sep 14, 2023 · 1 comment

Comments

@alexryall
Copy link

alexryall commented Sep 14, 2023

Magento version: 2.4.5
Checkout.com module version: 5.3.0
3DS: Disabled

Since upgrading to version 5 of the module in live we have been getting significantly more orders marked as "pending_payment". After investigating I have discovered the checkout.com module no longer checks a payment is authorized before placing the order and customers will receive the success page even when the payment fails authorization.

This can be replicated by installing the checkout.com module on a blank version of Magento and configuring with sandbox credentials. Using any of the sandbox cards that are used to emulate fails e.g. insufficient funds (4544 2491 6767 3670) the order will "complete".

Having looked into the code changes between v4 and v5 there used to be a check that the payment is approved. Now it only checks for a 20x status which includes any failures such as incorrect card details or insufficient funds.

v4:
image
image

v5:
image
image
image

@alexryall
Copy link
Author

This can be replicated by either having 3DS disabled in the admin or using a card that is not enrolled in 3DS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant