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

SEPA debit payment not working with Woopayments #8476

Closed
Lockoloop opened this issue Mar 26, 2024 · 17 comments · Fixed by #8991
Closed

SEPA debit payment not working with Woopayments #8476

Lockoloop opened this issue Mar 26, 2024 · 17 comments · Fixed by #8991
Assignees
Labels
component: saved cards and subscriptions Issues related to Saved Cards and Subscriptions focus: checkout payments priority: medium The issue/PR is medium priority—non-critical functionality loss, minimal effect on usability type: bug The issue is a confirmed bug.

Comments

@Lockoloop
Copy link

Lockoloop commented Mar 26, 2024

Describe the bug

💡 Note: this issue was further refined and the Acceptance Criteria for it are summarized in #8476 (comment).

When my customer tries to pay via SEPA direct debit, their order fails.

To Reproduce

  1. Customer places an order.
  2. Tries to pay via SEPA direct debit
  3. The order shows as failed
  4. See error

Actual behavior

The SEPA Direct Debit method of payment is enabled on the WooPayments page.
This error message shows in the order notes:

The PaymentMethod provided (sepa_debit) is not allowed for this PaymentIntent. Please attach a PaymentMethod of one of the following types: card. Alternatively, update the allowed payment_method_types for this PaymentIntent to include "sepa_debit".

Screenshots

Expected behavior

The customer should be able to complete their transaction.

Desktop (please complete the following information):

  • Plugin Version 7.3.0

Additional context

This customer has successfully used SEPA direct debit in the past, although I'm unsure if I were also using Stripe payments plugin on top of WooPayments back then.

@Lockoloop Lockoloop added the type: bug The issue is a confirmed bug. label Mar 26, 2024
@timur27
Copy link
Contributor

timur27 commented Mar 26, 2024

Hey @Lockoloop, thanks for the report. I've been trying to reproduce it but with no success so far, as I'm able to successfully place an order paying with SEPA on my test site with WooPayments 7.3.0.

image

although I'm unsure if I were also using Stripe payments plugin on top of WooPayments back then.

Could we try to turn off Stripe payments plugin for testing purposes and confirm if the failing SEPA if indeed coming from WooPayments? Thank you.

@csmcneill
Copy link
Contributor

This could be related to #3776

@Lockoloop
Copy link
Author

Hi Timur,
It was already off; I've removed the Stripe plugin some time ago already, when I stopped having issues with WooPayments (#7482) but only after that customer last ordered.
I haven't gotten any SEPA payments since I turned off Stripe.

@timur27
Copy link
Contributor

timur27 commented Mar 26, 2024

@csmcneill please correct me if I'm wrong but it seems that #3776 covers subscription renewals while this issue covers placing an order?

@csmcneill
Copy link
Contributor

@timur27 That's correct — but it's the only other instance I can find of this specific error.

@FangedParakeet
Copy link
Contributor

Just want to add that I was also unable to replicate the issue described here--using WooPayments v.7.3.0 both locally and on a Jurassic Ninja test site. @csmcneill & @Lockoloop, we may need some more details about the specifics of the store in question here to aid us in replicating and resolving the scenario described herein. 🙏

@FangedParakeet FangedParakeet added the needs feedback The issue/PR needs a response from any of the parties involved in the issue. label Mar 27, 2024
@csmcneill
Copy link
Contributor

Thanks for looking into this @FangedParakeet!

@Lockoloop Since we need some specific details about your site and how it is set up, we would prefer not to handle further troubleshooting on a public forum. Could you please navigate to Woo.com > My Account > Support and open up a chat or ticket with us so that we can look into this further? You may need to create an account before you can access that page.

Please include a link to this GitHub issue so that our Happiness Engineers can have a more complete picture of what's going on :)

@pierorocca pierorocca added the priority: medium The issue/PR is medium priority—non-critical functionality loss, minimal effect on usability label Mar 28, 2024
@Lockoloop
Copy link
Author

Hi, sorry for the late reply but I had to check with them what was happening.
What happened is that the bank account used for SEPA Payment is being saved in the Credit Card frame as well, and since both look similar, my customer clicked on payment by card. The SEPA payment works. So the issue is that the account number is saved as a credit card number.
credit_card_bug

@Lockoloop
Copy link
Author

Hi @timur27 , have you been able to check my last comment?

@csmcneill
Copy link
Contributor

Howdy @Lockoloop! I worked with Timur a bit on this today, and we've been able to reproduce the issue you specified in #8476 (comment).

Steps to Reproduce

  1. Enable SEPA for your WooPayments account.
  2. Revert to version 6.4.0 or earlier (I tested with version 6.3.0).
  3. Make a payment using SEPA and choose to save your payment method.
  4. Update WooPayments to version 7.5.3.
  5. Attempt to purchase another product.
  6. Use the saved SEPA payment method that appears under the Credit card / debit card radio option.
  7. Note the error message on the checkout page.
  8. Navigate to WooCommerce > Orders.
  9. Locate the Failed order associated with the attempted purchase made in steps 5–6.
  10. Assess the order notes.

Background and Screenshots

Currently, customers add a new saved SEPA payment method, but they were able to up through version 6.4.0. This was also when we were using a different implementation of the Universal Payment Element (or UPE) which included card payments + SEPA payments within the same element:

image

Since then, we split payment methods into individual radio buttons on checkout (which we call Split UPE, since payment methods are split up), but saved SEPA payment methods are still rendered in the same spot as they were in 6.4.0:

image

After this change, we are seeing that saved SEPA payment methods are also rendered under the SEPA Direct Debit radio option:

image

However, attempting to pay via the saved SEPA payment method that appears under the Credit card / debit card radio option will result in the following error on the checkout page:

We're not able to process this request. Please refresh the page and try again.

And the order notes will include the following error:

Error: The PaymentMethod provided (sepa_debit) is not allowed for this PaymentIntent. Please attach a PaymentMethod of one of the following types: card. Alternatively, update the allowed payment_method_types for this PaymentIntent to include "sepa_debit".

@csmcneill csmcneill added component: saved cards and subscriptions Issues related to Saved Cards and Subscriptions and removed needs feedback The issue/PR needs a response from any of the parties involved in the issue. labels Apr 25, 2024
@timur27
Copy link
Contributor

timur27 commented Apr 25, 2024

@Lockoloop if everything what Chris mentioned in #8476 (comment) is true for your store and saved SEPA token is also showing up under SEPA payment element, then we can use this issue to improve the following:

  • make sure saved payment tokens appear only under payment element of the same type
    • saved credit cards appear only under credit card element
    • saved SEPA appear only under SEPA element

@Lockoloop
Copy link
Author

That seems spot on, great work, guys!

@Lockoloop
Copy link
Author

Hi @timur27 , has this issue been addressed?

@csmcneill
Copy link
Contributor

Howdy @Lockoloop,

This issue has not been addressed yet.

We do not have a planned date for a fix at this time, but I can assure you we will work on it as soon as possible and will notify you when an update is available.

Additionally, since you opened the issue and commented on it, you should automatically receive notifications for future comments and when the issue is moved from Open (its current state) to Closed (which means the issue has been resolved).

@timur27
Copy link
Contributor

timur27 commented Jun 21, 2024

Please add your planning poker estimate with Zenhub @FangedParakeet

@timur27
Copy link
Contributor

timur27 commented Jun 21, 2024

Hey @Lockoloop! Everything that Chris mentioned above is true. However, we started discussing this issue internally and eventually prepared a fix for it slightly faster than initially planned. It should be included in WooPayments 7.9.0.

@Lockoloop
Copy link
Author

Great to hear! Sorry for the previous comment, I was worried the issue had fallen through a crack because you were so fast with fixing the other issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: saved cards and subscriptions Issues related to Saved Cards and Subscriptions focus: checkout payments priority: medium The issue/PR is medium priority—non-critical functionality loss, minimal effect on usability type: bug The issue is a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants