Bank account input in Stripe.js v3

閲覧: 416 回
最初の未読メッセージにスキップ

Kevin Grinberg

未読、
2018/02/04 15:50:442018/02/04
To: Stripe API Discussion
Two questions relating to the bank account collection methods in Elements/Stripe.js v3:

1) Are there planned equivalents to v2's bankAccount.validateRoutingNumber and bankAccount.validateAccountNumber? Those are pretty useful methods!

2) In v3, stripe.createToken('bank_account', ...) fails if you pass in an IBAN as the account number, with no routing number. For reference, v2 succeeds with the same parameters (which makes sense, because an IBAN combines both into one value). Unless I'm missing something, that seems like a straightforward bug. Or is there another way to get v3 to return a token for just an IBAN?

For now we can keep using v2 for bank account collection, so it's not a blocker, but it'd obviously be preferable to get everything updated & consolidated on one library version.

Remi J.

未読、
2018/02/04 15:55:132018/02/04
To: api-d...@lists.stripe.com
Hey Kevin,

1) Are there planned equivalents to v2's bankAccount.validateRoutingNumber and bankAccount.validateAccountNumber? Those are pretty useful methods!

Until we have pre-built elements that let you collect and validate those values automatically for you, I agree that those methods were useful. I'll share this with our engineering team!
 
2) In v3, stripe.createToken('bank_account', ...) fails if you pass in an IBAN as the account number, with no routing number. For reference, v2 succeeds with the same parameters (which makes sense, because an IBAN combines both into one value). Unless I'm missing something, that seems like a straightforward bug. Or is there another way to get v3 to return a token for just an IBAN?

Are you sure you're not incorrectly sending an empty value for `routing_number`? I can tokenize a European bank account in v3 without any issue and you can see an example here: https://jsfiddle.net/oe3v8a5o/

You need to make sure to pass the correct country and currency for the IBAN. If it starts with DE it should be for Germany. Otherwise you'd change the first 2 letters to match the country. 

Hope this helps!
Remi
 

For now we can keep using v2 for bank account collection, so it's not a blocker, but it'd obviously be preferable to get everything updated & consolidated on one library version.

--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss+unsubscribe@lists.stripe.com.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.

全員に返信
投稿者に返信
転送
新着メール 0 件