Tuesday, 9 February 2016

Stripe::CountrySpec

My contribution to stripe-gem





Now you can use


[4] pry(main)> Stripe::CountrySpec.retrieve("US")
#<Stripe::CountrySpec id=US 0x00000a> JSON: {
"id": "US",
"object": "country_spec",
"supported_bank_account_currencies": {
"usd": [
"US"
]
},
"supported_payment_currencies": [
"usd",
"aed",
"afn",
"..."
],
"supported_payment_methods": [
"alipay",
"card",
"stripe"
],
"verification_fields": {
"individual": {
"minimum": [
"external_account",
"legal_entity.address.city",
"legal_entity.address.line1",
"legal_entity.address.postal_code",
"legal_entity.address.state",
"legal_entity.dob.day",
"legal_entity.dob.month",
"legal_entity.dob.year",
"legal_entity.first_name",
"legal_entity.last_name",
"legal_entity.ssn_last_4",
"legal_entity.type",
"tos_acceptance.date",
"tos_acceptance.ip"
],
"additional": [
"legal_entity.personal_id_number",
"legal_entity.verification.document"
]
},
"company": {
"minimum": [
"external_account",
"legal_entity.address.city",
"legal_entity.address.line1",
"legal_entity.address.postal_code",
"legal_entity.address.state",
"legal_entity.business_name",
"legal_entity.business_tax_id",
"legal_entity.dob.day",
"legal_entity.dob.month",
"legal_entity.dob.year",
"legal_entity.first_name",
"legal_entity.last_name",
"legal_entity.ssn_last_4",
"legal_entity.type",
"tos_acceptance.date",
"tos_acceptance.ip"
],
"additional": [
"legal_entity.personal_id_number",
"legal_entity.verification.document"
]
}
}
}
view raw gistfile1.rb hosted with ❤ by GitHub

https://github.com/stripe/stripe-ruby/commit/f8532d225e20cb6ded2bd9a672a6d8a0479b80ba

1 comment: