#daniel-pham_api

1 messages ¡ Page 1 of 1 (latest)

knotty loomBOT
winter zincBOT
#

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.

knotty loomBOT
#

👋 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.

dapper citrus
covert kestrel
#

Yeah attach doesn't work

#

per the link above

#

please share the request id for the create call that's also failing

dapper citrus
#

  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,
  });
covert kestrel
#

please share the request id not the code

dapper citrus
#

here is the request Id, which Im trying to Cloning PaymentMethods for Connect customer account

covert kestrel
#

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)

dapper citrus
#

but Im passing the stripeAccount (connect account id) along to the request already, am I doing wrong?

covert kestrel
#

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

dapper citrus
#

I have checked and cus_QMxjpbuCH8H9fL is actually belongs to acct_1H26dMKQiRHKpDSF

covert kestrel
#

That's exactly what I said above

#

acct_1H26dMKQiRHKpDSF is the connect account

#

You need to pass the platform's customer id

dapper citrus
#

I see, my bad. thank you so much. so creating a platform customer is required before cloning any payment method, right?

covert kestrel
#

correct

dapper citrus
#

thank you so much.