#daniel-pham_api
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- daniel-pham_api, 4 hours ago, 8 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1255893418090037318
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Just want to clarify the issue here. Im trying to attach the created payment method to an Connect's customer account https://dashboard.stripe.com/acct_1H26dMKQiRHKpDSF/test/logs/req_UkGZoZyjkUVbkU?t=1719498477
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I used both create https://docs.stripe.com/payments/payment-methods/connect?lang=node#cloning-payment-methods
or attach, but both dont success
Yeah attach doesn't work
per the link above
please share the request id for the create call that's also failing
let stripePaymentMethod = await stripe.paymentMethods.create({
type: 'card',
card: {
token: paymentMethod.token,
},
},
);
stripePaymentMethod = await stripe.paymentMethods.create({
customer: platformCustomer,
// eslint-disable-next-line camelcase
payment_method: stripePaymentMethod.id,
}, {
stripeAccount: config.stripe.accountId,
});
please share the request id not the code
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
here is the request Id, which Im trying to Cloning PaymentMethods for Connect customer account
The customer you're passing to that request doesn't exist on the platform. It exists on the connect account
cus_QMxjpbuCH8H9fL is on acct_1H26dMKQiRHKpDSF (the connect account)
but Im passing the stripeAccount (connect account id) along to the request already, am I doing wrong?
yeah you're doing it wrong
if you follow the linked docs, you're supposed to pass the platform customer id and the platform payment method id
You correctly pass the platofrm payment method id and stripe account header
But you pass the wrong customer id
I have checked and cus_QMxjpbuCH8H9fL is actually belongs to acct_1H26dMKQiRHKpDSF
That's exactly what I said above
acct_1H26dMKQiRHKpDSF is the connect account
You need to pass the platform's customer id
I see, my bad. thank you so much. so creating a platform customer is required before cloning any payment method, right?
correct
thank you so much.