#sebastian - payment link quantity
1 messages · Page 1 of 1 (latest)
another question tho, can I create a payment link with code?
and if so, can you send me documentation?
Yes! We just recently launched the API for Payment Link creation/management:
https://stripe.com/docs/payments/payment-links/api
thank you, but I dont really understand how I actually code it
What do you mean? WHere are you stuck?
hmm yes the snippets seem to only show the raw curl requests, sorry about that!
which language/client do you use?
javascript
ok great
Our API ref has the language specific snippets for each endpoint, such as here:
https://stripe.com/docs/api/payment_links/payment_links/create?lang=node#create_payment_link-line_items
const paymentLink = await stripe.paymentLinks.create({
line_items: [
{
price: 'price_123',
quantity: 1,
},
],
});
I'll look into why we don't have those in the docs
thank you so much