#robertotmuniz
1 messages · Page 1 of 1 (latest)
Hello 👋
Can you share the example checkout session ID or request ID?
Yes! that is my session ID cs_test_b1lF06djC9liMdRcfWZpzJWwRI3nRihXWyMCptuZX7bfIzjyVXet81vTJV
It doesn't look like you passed the correct parameters with the request body
https://dashboard.stripe.com/test/logs/req_qyeC9aoVfrmcNB
I passed it like this:
collection(firestore, users/${uid}/checkout_sessions),
{
mode,
allow_promotion_codes: true,
billing_address_collection: "auto",
success_url: ${window.location.origin}/Sucesso?session_id={CHECKOUT_SESSION_ID},
cancel_url: window.location.origin,
payment_method_options: {
card: { installments: { enabled: true } },
},
tax_id_collection: { enabled: true },
phone_number_collection: { enabled: true },
line_items: [
{
price: price,
adjustable_quantity: { enabled: true },
quantity: 1,
},
],
}