None of the requested payment methods ([sepa_debit]) match the supported payment types ([card, bancontact, sofort, ideal, sepa_debit, eps, giropay, p24, klarna, paypal, afterpay_clearpay])
See original GitHub issueI have setup a connect test account and activated all payments in Test-Mode.
Payment Intente created by backend has sepa_debit as the only PaymentMethodType.
Response from initPaymentSheet is:
{ "paymentOption": undefined,}
and response in presentPaymentSheet:
{ "error": Object { "code": "Failed", "declineCode": null, "localizedMessage": "None of the requested payment methods ([sepa_debit]) match the supported payment types ([card, bancontact, sofort, ideal, sepa_debit, eps, giropay, p24, klarna, paypal, afterpay_clearpay])", "message": "None of the requested payment methods ([sepa_debit]) match the supported payment types ([card, bancontact, sofort, ideal, sepa_debit, eps, giropay, p24, klarna, paypal, afterpay_clearpay])", "stripeErrorCode": null, "type": null, }, }
Is there a way to use payementSheet with sepa_debit in test-mode? Having giropay or card in PaymentMethodType is working. Using stripe.confirmPayment instead of initPaymentSheet() and presentPaymentSheet() is working too.
code snippet:
stripe.initPaymentSheet({ merchantDisplayName: companyName'', paymentIntentClientSecret: res.data.result.clientSecret, }).then(resp => { console.log('resp', resp); stripe.presentPaymentSheet().then(respo => { console.log('respo', respo); }).catch(err => { console.log('err', err); }) }).catch(e => { console.log('e', e); })
Issue Analytics
- State:
- Created a year ago
- Comments:8
yeah it should work with a payment intent. but if you’re doing a subscription (which is what gathered from your comment above), then you’re using a setup intent
@ShwetaChauhan18 SEPA debit isn’t supported on Payment Sheet with setup intents yet: https://github.com/stripe/stripe-android/blob/master/CHANGELOG.md#1810---2021-10-18