#vip2002

1 messages · Page 1 of 1 (latest)

orchid houndBOT
upbeat halo
#

Hi
can you share the checkout Session Id ?

arctic fractal
#

yes wait

#

session Id : cs_test_a1sCQlkqtiZrMAE26ljZnoB9zMBopPlFXkC8G6V9dBXHoIggLNKwA304Q9

upbeat halo
#

Google Pay isn't available for India.

arctic fractal
#

what i do for gpay ? andwhich other option possible for india?

upbeat halo
#

what i do for gpay ?
You need to have an account outside of India

#

andwhich other option possible for india?
When creating the Subscription remove the field payment_method_types and you'll get all available payment methods.

arctic fractal
#

thanks a lot for your guide

upbeat halo
#

Welcome!

arctic fractal
#

i remove my payment_method_types but i coudn't show any other option ?

#

app.post("/payment", async (req, res) => {
const { product } = req.body;
const session = await stripe.checkout.sessions.create({
line_items: [
{
price_data: {
currency: "inr",
product_data: {
name: product.name,
},
unit_amount: product.price * 100,
},
quantity: product.quantity,
},
],
mode: "payment",
success_url: "http://localhost:3000/success",
cancel_url: "http://localhost:3000/cancel",
});
console.log(session)
res.json({ id: session.id });
});

upbeat halo