We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi there,
in order to have metadata available in stripe you need to provide payment_intent_data in the stripeSession
const stripeSession = await stripe.checkout.sessions.create({ success_url: `${process.env.NEXT_PUBLIC_SERVER_URL}/thank-you?orderId=${order.id}`, cancel_url: `${process.env.NEXT_PUBLIC_SERVER_URL}/cart`, payment_method_types: ["card", "paypal"], mode: "payment", metadata: { userId: user.id, orderId: order.id }, line_items, payment_intent_data: { metadata: { userId: user.id, orderId: order.id } } });
cheers
The text was updated successfully, but these errors were encountered:
No branches or pull requests
hi there,
in order to have metadata available in stripe you need to provide payment_intent_data in the stripeSession
cheers
The text was updated successfully, but these errors were encountered: