woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
232 stars 204 forks source link

[APM] Wrong redirection destination when the payment fails on the Pay for order page #3066

Open a-danae opened 6 months ago

a-danae commented 6 months ago

Describe the bug

When using the Pay for order page and an APM that uses redirects, like Alipay, Klarna, Bancontact, etc. shoppers are redirected to the checkout page instead of the Pay for order page when the payment fails.

To Reproduce Steps to reproduce the behavior:

  1. Select EUR as the store currency, at /wp-admin/admin.php?page=wc-settings&tab=general

  2. Enable giropay, at /wp-admin/admin.php?page=wc-settings&tab=checkout&section=stripe&panel=methods

  3. As a merchant, create a new WC order at /wp-admin/admin.php?page=wc-orders&action=new

  4. As a shopper, visit the Pay for Order page for this newly created order

    image
  5. Select giropay as the payment method

  6. Click on Pay for order

  7. On the Stripe's giropay test payment page, click on "Fail test payment"

  8. Notice that you redirected to either the Checkout or the Cart page, but not to the Pay for Order page

Expected behavior As a shopper, I'd expect to be redirected to the Pay for Order page if the payment processing fails. This way I can smoothly resume the process.

Screenshots If applicable, add screenshots to help explain your problem.

github-actions[bot] commented 1 month ago

Hi, This issue has gone 150 days (5 months) without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest version, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

github-actions[bot] commented 1 week ago

This issue has gone 180 days (6 months) without any activity.