#mark.at.deco
1 messages ยท Page 1 of 1 (latest)
Hi orakaro, I missed your last response from my previous issue (I dont keep discord open). My script worked to figure out which countries can create an onboarding link so that problem is now solved.
hey, no worry
But I noticed the capabilites list referred to "klarna" which is odd
I think it's just the name. Why do you think it should be klarna_payments?
this is one of the elements returned from the API:
{
"id": "klarna",
"object": "capability",
"account": "acct_1LsG5YFwTcGdshSn",
"future_requirements": {
"alternatives": [
],
"current_deadline": null,
"currently_due": [
],
"disabled_reason": null,
"errors": [
],
"eventually_due": [
],
"past_due": [
],
"pending_verification": [
]
},
"requested": false,
"requested_at": null,
"requirements": {
"alternatives": [
],
"current_deadline": 1668487572,
"currently_due": [
"legal_entity.controllers_provided"
],
"disabled_reason": "requirements.fields_needed",
"errors": [
],
"eventually_due": [
"legal_entity.controllers_provided"
],
"past_due": [
"legal_entity.controllers_provided"
],
"pending_verification": [
]
},
"status": "unrequested"
}
all the other "id" s match the API docs except Klarna
I think it's just the name. Which API Docs you refer to?
Stripe::Account.list_capabilities("acct_1LsG5YFwTcGdshSn")
for instance, the "id" elements for an AU account are: "afterpay_clearpay_payments",
"au_becs_debit_payments",
"bancontact_payments",
"card_payments",
"eps_payments",
"giropay_payments",
"ideal_payments",
"p24_payments",
"sepa_debit_payments",
"sofort_payments",
"transfers"
I think it's just the name ๐
and a german account has
"bancontact_payments",
"bank_transfer_payments",
"blik_payments",
"card_payments",
"cartes_bancaires_payments",
"eps_payments",
"giropay_payments",
"ideal_payments",
"klarna",
"link_payments",
"p24_payments",
"sepa_debit_payments",
"sofort_payments",
"transfers"
i dont think its a name...
what would it be called "id" if its a name?
I mean, it's just how we call it klarna instead of klarna_payments I agree it looks a bit inconsistent
every other instance perfectly matches the list you would send when updating an account to request capabilites
Hi @scarlet sedge I'm taking over
hi
Let me know if you have any follow-up questions
ummm.. so you agree that the "id" from Stripe::Account.list_capabilities should NOT match the capabilities hash keys when calling Stripe::Account.update ?
Are you talking about the capabilities.klarna_payements (https://stripe.com/docs/api/accounts/object#account_object-capabilities-klarna_payments) ?
yes, thats the capabilities hash key you would set to true if you were to request klarna
but when you request the list of capabilities against an account, the "id" of the klarna capability is "klarna", not "klarna_payments"
everyu other capability matches
Hmm, but it's still klarna_payments according to the API doc https://stripe.com/docs/api/accounts/update#update_account-capabilities-klarna_payments
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Did I miss anything?
this API uses a different key https://stripe.com/docs/api/capabilities/list?lang=ruby
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so when you get the "extended" list of capabilities calling Stripe::Account.list_capabilities you get "klarna", not "klarna_payments"