#Kromolabs Developer
1 messages · Page 1 of 1 (latest)
Hello, what is your problem?
I tried adding a sepa method from san marino req_UAIpKoM1xGuRJu
It failed because no address was provided
Address field is mandatory only for san marino?
Usually other Sepa debit payment methods don't ask for address
Interesting, not sure why san marino specifically would require and address. Looking in to this and will get back to you with what I can find
And to be clear, this exact same code works for SEPA in other countries?
yes, tested with almost every test SEPA in test mode
and a lot of italian SEPA methods in live mode
Hey, just to be clear, are you using your own custom form to collect this info, or are you using our Payment Element?
I'm using elements
elements.create("iban", {
supportedCountries:['SEPA'],
'style': style,
'hideIcon': true
});
ibanElement.mount("#iban");
Thank you, will see if I can reproduce with that.
Ah this is actually documented as a requirement for some countries
Address of the account holder. Required only for IBANs with these country codes: AD, PF, TF, GI, GB, GG, VA, IM, JE, MC, NC, BL, PM, SM, CH, WF. Required sub-fields: country and line1. See the Sources API reference for a complete list of address sub-fields.
https://stripe.com/docs/sources/sepa-debit#custom-client-side-source-creation
So it looks like line1 and country will always be required for San Marino and the other countries listed there
Ok so it's not only address line1 but also country
Yep yep
city, postal_code and state optional, correct?
Correct, the doc says it should be just those two fields for those countries. Does not list any conditions where those fields would be required
Perfect, thanks a lot!
Of course! Glad I could help, thank you for your patience
One last question
Are there AD, PF, TF, GI, GB, GG, VA, IM, JE, MC, NC, BL, PM, SM, CH, WF test iban to try that?
Great Britan i guess?
GB82WEST12345698765432
Good question. I don't see any in the test doc but we may have some undocumented ones
If I remember correctly, you may be able to just use generic SEPA test numbers for those countries. Stripe makes some to test some behaviors but the normal test ones for each country may still work
Great Britan it's ok
Yeah I figured you might just be asking for the one to test this functionality
Good catch!
I find one GB iban in documentation, i will try with that! Thanks a lot