payments
This commit is contained in:
parent
5ce0f73293
commit
4d45854a66
|
@ -45,7 +45,7 @@ export default async (req, res) => {
|
||||||
payment_method_types: ["card"],
|
payment_method_types: ["card"],
|
||||||
line_items: [{ price, quantity: 1 }],
|
line_items: [{ price, quantity: 1 }],
|
||||||
customer: user.stripeCustomerId,
|
customer: user.stripeCustomerId,
|
||||||
customer_email: user.stripeCustomerId ? undefined : user.email,
|
customer_email: user.stripeCustomerId ? null : user.email,
|
||||||
client_reference_id: user.id,
|
client_reference_id: user.id,
|
||||||
// ?session_id={CHECKOUT_SESSION_ID} means the redirect will have the session ID set as a query param
|
// ?session_id={CHECKOUT_SESSION_ID} means the redirect will have the session ID set as a query param
|
||||||
success_url: `${process.env.SKYNET_DASHBOARD_URL}/payments?session_id={CHECKOUT_SESSION_ID}`,
|
success_url: `${process.env.SKYNET_DASHBOARD_URL}/payments?session_id={CHECKOUT_SESSION_ID}`,
|
||||||
|
|
Reference in New Issue