#Kromolabs Developer

1 messages · Page 1 of 1 (latest)

toxic fogBOT
quartz osprey
#

Hello, what is your problem?

orchid hornet
#

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

quartz osprey
#

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?

orchid hornet
#

yes, tested with almost every test SEPA in test mode

#

and a lot of italian SEPA methods in live mode

quartz osprey
#

Hey, just to be clear, are you using your own custom form to collect this info, or are you using our Payment Element?

orchid hornet
#

I'm using elements

#

elements.create("iban", {
supportedCountries:['SEPA'],
'style': style,
'hideIcon': true

    });
    ibanElement.mount("#iban");
quartz osprey
#

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

Use Sources to accept payments using SEPA Direct Debit, a popular European banking payment method.

#

So it looks like line1 and country will always be required for San Marino and the other countries listed there

orchid hornet
#

Ok so it's not only address line1 but also country

quartz osprey
#

Yep yep

orchid hornet
#

city, postal_code and state optional, correct?

quartz osprey
#

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

orchid hornet
#

Perfect, thanks a lot!

quartz osprey
#

Of course! Glad I could help, thank you for your patience

orchid hornet
#

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

quartz osprey
#

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

orchid hornet
#

Great Britan it's ok

quartz osprey
#

Yeah I figured you might just be asking for the one to test this functionality

#

Good catch!

orchid hornet
#

I find one GB iban in documentation, i will try with that! Thanks a lot