How to create payment links with $0?

48 views
Skip to first unread message

Henry Cline

unread,
Dec 8, 2023, 11:12:35 AM12/8/23
to Stripe API Discussion
I created a form payment link for services that has three products in it. Each product created has the box ticked to allow the user to set the number between 0-99 items.

The payment link comes up with the form filled with one of each of the products, so the user has to go in and remove the items they dont want?

How do I make a payment link that is $0 value UNTIL the payee selects a product?

Thanks

Remi J.

unread,
Dec 8, 2023, 11:24:28 AM12/8/23
to api-d...@lists.stripe.com
Hello Henry,

This isn't possible to do today unfortunately. The minimum quantity that you can set for each line item is 1 and not 0. The validation in the API predates the addition of the `adjustable_quantity` parameter/feature so maybe we could change this in the future.

In a way, you make your PaymentLink and the resulting Checkout Session(s) kind of a cart system which we definitely didn't intend this for. I can see how your use-case could be interesting so we'll track this as a potential feature request.

In the meantime you will either have to default to 1 and let them change it as they want or maybe integrate directly with Checkout and ask them upfront which Price and quantity they want to pick.

Sorry I don't have a better answer for now!
All the best,
Thomas

--
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
Reply all
Reply to author
Forward
0 new messages