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

[BNPL] Klarna / Affirm - No error message is displayed on the block checkout when the transaction is denied #3060

Closed
Tracked by #3003
a-danae opened this issue Apr 10, 2024 · 2 comments
Assignees

Comments

@a-danae
Copy link
Contributor

a-danae commented Apr 10, 2024

Describe the bug

When the transaction is denied by Klarna, the shopper is redirected to the checkout page but no error message is displayed.

This could be happening for Afterpay and Affirm too.

To Reproduce
Steps to reproduce the behavior:

  1. Check out the branch add/klarna-payment-method
  2. Make sure the currency store is USD, the Legacy checkout experience is disabled, and that Klarna is enabled
  3. Ensure a page using the block checkout is selected as the default checkout page in WooCommerce, under Page setup > Checkout page, at /wp-admin/admin.php?page=wc-settings&tab=advanced
  4. As a shopper, add a product to the cart, and go to the checkout page
  5. In Klarna, log in with the following email address or phone number to get your transaction denied customer+denied@email.us or +13106354386
  6. Select Pay now and continue. You'll get a "Sorry, we couldn't approve this purchase" error
  7. Select Pay in 4 and continue. You'll get another error message
  8. Click on "Return to checkout"
  9. Notice that you go back to the store, but no error message is displayed. On the Stripe logs, you'll see the following entries
Error when processing payment: Customer was declined by Klarna
Error: We're not able to process this payment. Please try again later.

Expected behavior
The shopper must have a user-friendly message when returning to the checkout page.

@wjrosa wjrosa changed the title [BNPL] Klarna - No error message is displayed on the block checkout when the transaction is denied [BNPL] Klarna / Affirm - No error message is displayed on the block checkout when the transaction is denied Apr 25, 2024
@wjrosa
Copy link
Contributor

wjrosa commented Apr 25, 2024

The same issue happens with Affirm. See this comment. PR integrating Affirm here.

@wjrosa wjrosa self-assigned this Apr 30, 2024
@wjrosa
Copy link
Contributor

wjrosa commented May 2, 2024

This seems to be a regression on woocommerce/woocommerce#42787 (comment) (see my comment).

This was first reported in Automattic/woocommerce-payments#7792 for Giropay (moved here, then here). Supposed fixed here.

I pinged the Rubik team there, so I will be closing this since it is not specific to BNPL.

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

No branches or pull requests

2 participants