#vip2002
1 messages · Page 1 of 1 (latest)
Hi
can you share the checkout Session Id ?
yes wait
session Id : cs_test_a1sCQlkqtiZrMAE26ljZnoB9zMBopPlFXkC8G6V9dBXHoIggLNKwA304Q9
what i do for gpay ? andwhich other option possible for india?
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 fieldpayment_method_typesand you'll get all available payment methods.
thanks a lot for your guide
Welcome!
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 });
});
When you remove that parameter, you opt for all available payment methods. Check this guide:
https://stripe.com/docs/connect/automatic-payment-methods?connect-payment-integration-type=checkout&connect-charge-type=direct&connect-account-type=standard#integrate