Stripe IBAN Element Error 'The type `sepa_debit` is not a valid source type.'
Asked Answered
M

1

7

I tried to implement the Stripe IBAN element, descriped right here: https://stripe.com/docs/stripe-js/elements/iban

I used the exact same code, change the api key, but I keep getting this error 'The type sepa_debit is not a valid source type.' But in the docs they write you have to use 'sepa_debit' as the type..

The Credit card example is working fine for me..

Merilyn answered 31/8, 2018 at 11:35 Comment(3)
Have you turned sepa on in your account settings? - dashboard.stripe.com/account/payments/settingsKeith
@AshleyMedway oh my fault, thank you. I didn't see that it's impossible to test sepa on test mode..Merilyn
How I can IBAN of USA user?Owens
M
7

For try the source type "sepa_debit" on an IBAN Element is indifferent if you are in live or test mode, the only requisite is enable the option "SEPA Direct Debit" under Payment Settings section which is based in "invitation list" mode.

enter image description here

As they write:

SEPA Direct Debit payments are available to Europe-based Stripe users in a closed preview. In order to activate SEPA Direct Debit, you will need to request an invite through your Stripe Dashboard.

And as second condition:

Before you can accept SEPA Direct Debit payments, your Stripe account needs to have regularly processed card payments for 30 days. SEPA Direct Debit payments are also subject to processing volume limits, and payments can fail if you exceed your limits. If you are a new customer or plan to process a high volume of transactions, please get in touch to request a review.

When you get accepted, you can try in live/test mode with your public and secret keys. Until you get accepted, you can use ONLY the public keys as demo which are showed in stripe docs as merchant demo, like for example this key (could be changed in future):

// Note: this merchant has been set up for demo purposes.

pk_test_6pRNASCoBOKtIshFeQd4XMUh

Massimo answered 2/2, 2019 at 3:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.