#syoxiss-connect-stripejs

1 messages · Page 1 of 1 (latest)

silent fogBOT
#

Hello! We'll be with you shortly. 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.

proud birch
#

I checked the paymentInt Id and it was in fact created in the merchant connect account so I'm assuming that for some reason, the stripe.js in my front-end is trying to find it inside my platform account (The payment intent created in my merchant connect account)

cedar furnace
#

@proud birch can you share the exact code you use to initialize Stripe.js client-side? Can you also share the PaymentIntent id pi_123?

#

syoxiss-connect-stripejs

proud birch
#

This is the payment intent id: pi_3Olxg74gPM0BfUTk17emC9K7

Below is my code for the front-end:
const stripePromise = useMemo(
() =>
loadStripe(process.env.REACT_APP_STRIPE_KEY ?? '', {
stripeAccount: cartDetailsData?.stripeAccount,
}),
[cartDetailsData?.stripeAccount],
);
<Elements stripe={stripePromise}>
{children}
</Elements>
await stripe.confirmCardPayment(
stripePaymentIntent?.paymentIntentClientSecret,
{
payment_method: {
card: cardNumberElement,
},
},
);

cedar furnace
#

What's the value of cartDetailsData?.stripeAccount in your example?

proud birch
#

acct_1O0YJL4heGTq1X0U

cedar furnace
#

yeah that's the wrong account id that's why

proud birch
#

O_O

cedar furnace
#

When you created that PaymentIntent you gave us a different account id.

proud birch
#

Oh

#

This was the correct one: acct_1OjMuw4gPM0BfUTk

cedar furnace
#

yes!

proud birch
#

Thanks you