#yebuntu
1 messages · Page 1 of 1 (latest)
hi there, can you share the request id [0]? it'd look like req_xxx
Em, sure sec
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
On the client side
<Elements stripe={getStripe()} options={{ clientSecret: activeClientSecret }}>
<StripePurchase product={product} />
</Elements>
import { Stripe, loadStripe } from '@stripe/stripe-js';
let stripePromise: Promise<Stripe | null>;
const getStripe = () => {
if (!stripePromise) {
stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY);
}
return stripePromise;
};
export default getStripe;
the PaymentIntent is created using the Stripe Account header : https://stripe.com/docs/connect/authentication which means it's created on the connected account defined in the Stripe Account header
so when you initialize Stripe client side, you need to define the Stripe Account header also : https://stripe.com/docs/connect/authentication#adding-the-connected-account-id-to-a-client-side-application