#RubyDev
1 messages · Page 1 of 1 (latest)
👋 happy to help
moving your messages here
I would like to update payment link, can I update price ID?
via API
would you mind removing them from the main channel
no unfortunately you can't
you can just change the adjustable_quantity and the quantity eventually
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay thanks
Okay thanks
one more thing @woven karma
can I update application_fee_percent also?
within update API call
or totally not
no unfortunately not
Okay thanks
one more last thing @woven karma
req_ILJNH1J1pGmtjz
what's missing parameter_missing - line_items[0][id]
Hey! Taking over for my colleague. Let me catch up.
You are missing the priceId that you want to update its quantity
https://stripe.com/docs/api/payment_links/payment_links/update#update_payment_link-line_items-id
but I can't add diff price_id right ?
only the previous one
as you said I can't update price
yeah you need to use the same priceId, you can price either the adjustable_quantity and the quantity as my colleague mentioned above. To do so you need to pass the existing priceId that you want to adjust its quantity
what is the diff between quantity and adjustable_quantity
@torpid spindle can you please help on this last one?
line_items.adjustable_quantity
When set, provides configuration for this item’s quantity to be adjusted by the customer during checkout.
https://stripe.com/docs/api/payment_links/payment_links/update#update_payment_link-line_items-id
https://stripe.com/docs/payments/checkout/adjustable-quantityline_item.quanity
The quantity of the line item being purchased. It's fix and can't be changed by the customer
https://stripe.com/docs/api/payment_links/payment_links/update#update_payment_link-line_items-quantity
Okay thanks