#sudheshna_01259
1 messages · Page 1 of 1 (latest)
So the customer can pay $1000 or less with this payment link?
https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-line_items-adjustable_quantity-maximum you can create a price of $1, and set adjustable_quantity.maximum to 999
Or create a price of $2, with adjustable_quantity.maximum to 500.
ohk so that we can set the number of payments for the amount
let me try with this, and thank you for your help
Our requirement can't be achieved like this, as its restricting the customers payment flexibility, so can I update the maximum amount of the payment link after each transaction calculating the blanace amount to be paid
I don't understand you, can you rephrase?
I have a paymentlink created with 1000 initially, customer can pay it as he wish like 200 for 5 times using the same link, so while on each successful payment I can update the paymentlink amount to be the balance amount to be paid, so after the first payment the link will be updated as maximum amount to be 800 instead of 1000
till the balance become 0, then the link can be deactivated
Ok, then you can use this API to updte the adjustable_quantity https://stripe.com/docs/api/payment_links/payment_links/update#update_payment_link-line_items-adjustable_quantity
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You mean the price? no you can't update the price
ohk
once I create a link I can update the quantity only not the amount rite?
what about the maximum amount?
CustomUnitAmount maximum
No
Ok