#zhi-afterpay-checkout
1 messages · Page 1 of 1 (latest)
all good that's enough for me to dig
Okay so first of all you are creating a Session on the connected account. You basically should never be doing that in the first place. Direct Charges should never be used with Express accounts. I would strongly encourage you to change that as fast as possible and move to Destination charges: https://stripe.com/docs/connect/destination-charges
this is the error message
And then since you use Connect here, you can't use afterpay on that account until after you request the correct capability in the API for it which as far as IU can tell you never did
it's not enough to enabled this on your own account, the settings are per connected account
actually, we were told to pass stripe-account-id in the session creation api to do the direct charge
it is all good in the test environment with the same setting (connect account)
Correct, you have to do it to do a direct charge. You absolutely shold never be doing this ever with Express accounts
but start to get this kind of error from production testing
sorry you're going a bit too fast and ignoring what I'm saying
1/ to be able to use a payment method, you need the Capability to be enabled on that account. If you don't request the capability, it'll never work
so have you done that? Because I don't see it on that account at least
I am slow. please help me understand this.
As you said the way we have implemented is not recommended. Is this ever supported by the Stripe?
Can you guide us to the page that we need to quest the capability, please?
I don't see the request btn beside this feature
We have turned this feature on for all of our connected accounts
yeah sorry you are misunderstnading a lot about all of this
turning this on doesn't mean much in this context. You have to explicitly request all the relevant capabilities for every single connected accounts
I'd recommend reading: https://stripe.com/docs/connect/account-capabilities#payment-methods
from the UI, where is the place we can request the afterpay payment option?
nowhere, this is 100% done with code
There might be a UI in the Dashboard for individual connected accounts to change the capability, but I'm mostly focused on the code here for developers to integrate
you're supposed to set https://stripe.com/docs/api/accounts/update#update_account-capabilities basically to all the capabilities you care about
https://dashboard.stripe.com/settings/connect/express you can also change the default capabilities here for Express accounts (for future/new ones)
ok, got it. I will try this out tonight. Thank you very much, Koopajah