#milky_bear-paymentlinks
1 messages · Page 1 of 1 (latest)
hi! well in terms of making it dynamic on the page itself, you can have the quantity of an item be adjustable https://stripe.com/docs/payments/checkout/adjustable-quantity , that's supported when creating the PaymentLink through the API and (I think) dashboard.
But beyond that, sounds like you'd want to calculate your own price and create a PaymentLink or CheckoutSession for that directly really. Depends what exactly you're looking for.
Thanks @forest pivot! Yes it is the latter that I'd like to do. I can query the total price of invoice in Netsuite via API and would like to set that as the price of the payment link. Any additional context on how to implement that?
I would use Checkout directly instead of a paymentLink I think. In which case you'd want https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout (you can see how in step 2 you define a line item with price_data for a given unit_amount and currency , for an ad-hoc payment of that amount)