#himanshujain044
1 messages · Page 1 of 1 (latest)
Hello! Do you have an example I can take a look at?
yes
if you are free then please help me out
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_1O58beSH5rhyf7y1Sik8S2Cp",
quantity: 1,
},
],
mode: "subscription",
success_url: http://localhost:3000/,
cancel_url: http://localhost:3000/,
customer_email: "softwaresjain@gmail.com",
expires_at: Math.floor(Date.now() / 1000) + 60 * 29,
// expires_at: Math.floor(Date.now() / 1000) + 60 * 1,
});
successResponse(res, { url: session.url }, "Payment link created");
by doing this i making payment link
Okay, but how does that relate back to your specific issue?
yes
You were mentioning the invoice.payment_failed event - can you give more details about that?
No, that's not somethign we offer here
If you need more personalized support you can ask at https://support.stripe.com/contact
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
one last question stripe does not support the gpay method in india ?