#robertotmuniz

1 messages · Page 1 of 1 (latest)

gentle moonBOT
thorny marlin
#

Hello 👋
Can you share the example checkout session ID or request ID?

blissful snow
#

Yes! that is my session ID cs_test_b1lF06djC9liMdRcfWZpzJWwRI3nRihXWyMCptuZX7bfIzjyVXet81vTJV

thorny marlin
blissful snow
#

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,
},
],
}

thorny marlin
#

If you look at the example request I shared above, you'd see that

      phone_number_collection:  { enabled: true },``` parameters never reached stripe
#

would recommend double checking if that's the right code that's running