echoing-computer-87366
02/21/2022, 6:30 PMhallowed-jordan-5457
02/22/2022, 4:25 AMmagnificent-solstice-42554
02/22/2022, 5:31 AMmagnificent-solstice-42554
02/22/2022, 5:32 AMechoing-computer-87366
02/22/2022, 8:47 AMmagnificent-solstice-42554
02/22/2022, 10:11 AMechoing-computer-87366
02/22/2022, 5:32 PMechoing-computer-87366
02/22/2022, 5:50 PM<http://router.post|router.post>('/create-checkout-session', async (req, res) => {
try {
const session = await stripe.checkout.sessions.create({
line_items: [
{
// Provide the exact Price ID (for example, pr_1234) of the product you want to sell
price: 'price_5aBok6',
quantity: 1,
},
],
mode: 'subscription',
success_url: `<http://localhost:3000/upgrade>`,
cancel_url: `<http://localhost:3000/subscription>`,
});
res.send({ id: session.id });
} catch (error) {
console.log("error", error)
}
});
in above code line items information will be sent from frontend to this route correct? and based on that line item info generate session id right?magnificent-solstice-42554
02/23/2022, 6:33 AMso if someone from India wants to buy your product he has to pay in USD or stripe will convert it into INR??I don't sell in India yet. Still haven't gotten around to reading the RBI regulations on CC storage.
magnificent-solstice-42554
02/23/2022, 6:39 AMmagnificent-solstice-42554
02/23/2022, 6:39 AMechoing-computer-87366
02/23/2022, 6:52 AMechoing-computer-87366
02/23/2022, 5:38 PM