#syoxiss-connect-stripejs
1 messages · Page 1 of 1 (latest)
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.
- syoxiss.-connect-react, 1 hour ago, 21 messages
- syoxiss., 2 hours ago, 9 messages
- syoxiss., 3 hours ago, 17 messages
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)
@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
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,
},
},
);
What's the value of cartDetailsData?.stripeAccount in your example?
acct_1O0YJL4heGTq1X0U
yeah that's the wrong account id that's why
O_O
When you created that PaymentIntent you gave us a different account id.
yes!
Thanks you