#cabello-connect-paymentmethods
1 messages · Page 1 of 1 (latest)
Hi 👋
Sorry is the ask about how you would do this in the API?
Yes, it points to a capability page, but also, how is this only doable by the API?
What should I expect to happen once the API is used, given the Stripe own UI doens't let me?
I cannot speak to what the Dashboard does or does not allow. This server is focused on helping developers coding integrations with Stripie APIs. But let's step back. If you are using Express accounts then you shoud be using Destination charges and in that case the payment method configuration that would matter would be on the platform account.
how are you creating charges?
const paymentIntent = await stripe.paymentIntents.create({
amount: grossAmountInCents,
currency: currency,
customer: customerId,
metadata: {
providerId,
requestId,
},
application_fee_amount: feeAmountInCents,
description: `Charge for ${requestId}`,
on_behalf_of: payoutAccountId,
automatic_payment_methods: {
enabled: true,
},
transfer_data: {
destination: payoutAccountId,
},
});
and we let the payment methods come from the dashboard
Okay so this is using on_behalf_of
Wait a sec. I think I see what the error message means
Are you going into the Connect Account's dashboard to try and update the Payment Methods?
Exactly
Then now using the capability API as suggested by the link and using Stripe CLI
stripe capabilities update acct_xxdd alipay --requested=true
{
"error": {
"message": "Unknown capability: alipay.",
"param": "capability",
"request_log_url": "https://dashboard.stripe.com/acct_xxdd/test/logs/req_yyzz",
"type": "invalid_request_error"
}
}
The list includes klarna, affirm and many payments methods but doesn't list alipay or wechat
This account ID was found using the download CSV and filtering by an eligible account
In payment method configurations (unrelated API I know) https://docs.stripe.com/api/payment_method_configurations/update
It names the payment methods as alipay and wechat_pay
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I will wait for a person in the Hong Kong / China area to sign up to ask Stripe support via email what's going on.
Sorry the issue is that you need to manage the Payment Method Settings from your own dashboard. If you go to your accont's payment method settings page, you will see an option to configure settings for your conenct accounts.