#crenon
1 messages · Page 1 of 1 (latest)
Can you share the request ID (req_xxx) which the payment method was created? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
The payment method ID (pm_xxx) will be helpful too
the payment method id that was returned was pm_1NG9ebFpNhphKMNxlyMC6z93, the request that returned the error was req_EKlqQvU7vYVdYA
thanks very much
we're a connect platform, but i tried searching for the payment method on the platform and on the connected account and couldnt find it
pm_1NG9ebFpNhphKMNxlyMC6z93 was created on the platform account acct_1HCESfFpNhphKMNx, but you were trying to attach the payment method to the customer in connected account acct_1MF0B9FzbrmxqkIp
Since pm_1NG9ebFpNhphKMNxlyMC6z93 wasn't created on the connected account, it couldn't be found
To create a payment method on the connected account, you should create the payment method on the connected account instead
ah yes, that makes sense. i did try searching it on the platform dashboard and didn't find anything, but maybe the PMs don't show in the search on the dashboard? anyway, were sending the PM creation from stripe.js like this:
type: 'card',
card: paymentElement,
},
{
stripeAccount: [connected account id],
})```, but it sounds like that's not creating the PM on the connected account, can you recommend a better way?
The StripeJS code doesn't look right. stripeAccount header should be set in the initialisation of stripe, not at stripe.createPaymentMethod function. For example,
var stripe = Stripe('{{PLATFORM_PUBLISHABLE_KEY}}', {
stripeAccount: '{{CONNECTED_STRIPE_ACCOUNT_ID}}',
});
You may refer to the details here: https://stripe.com/docs/connect/authentication#adding-the-connected-account-id-to-a-client-side-application
i did try searching it on the platform dashboard and didn't find anything, but maybe the PMs don't show in the search on the dashboard?
Yup! Payment Method isn't searchable in Dashboard