#_shubhamjha
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- _shubhamjha, 1 hour ago, 4 messages
- _shubhamjha, 2 hours ago, 27 messages
- _shubhamjha, 4 days ago, 28 messages
Hi, let me help you with this.
const stripe = require('stripe')('sk_test_tR3PYbcVNZZ796tH88S4VQ2u');
const paymentLink = await stripe.paymentLinks.create({
line_items: [
{
price: 'price_1MoC3TLkdIwHu7ixcIbKelAC',
quantity: 1,
},
],
}); here how to allow to add parmotion code
You can't since Payment Links are multi-use. I think you might actually need Stripe Checkout instead: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout
listen i heve multiple plans which i have made in stripe dashbord and i am making the payemt link though passing the price id , so for some costomer i will make a discounted coupon i nned when user go to the chekout page gnerated by your api , their is a option of add parmotion code
Are you generating a new link for each customer?