#PixelNinja
1 messages · Page 1 of 1 (latest)
Hi, can you provide more clarity here? What do you mean by edit their payment?
Hey
So if I create a payment like here on the dashboard:
But it's actually created through the API allowing me to redirect them to a payment page
It has a list of all their basket items, but if they say wanted to remove one, they go back to my website and remove it from basket and then re-click pay
Can I edit the payment request or do I have to delete it and remake a new one?
What you're trying to achieve is not possible. You cannot after providing the payment link, edit the items there by removing items. You'd create a new payment link without the line item in this case.
You can use the Update Payment Links API, https://stripe.com/docs/api/payment_links/payment_links/update#update_payment_link-active and pass false in the active parameter.
Ah I see, thank you. Do you know what kinda ratelimits I should impose on the new creation endpoint, for example, how many times a user can change their basket and go back through creating another payment?
I'm not sure if there is a recommended amount per customer
It all depends on your integration and how many other calls are being made at the same time. To learn more about rate limiting please visit: https://stripe.com/docs/rate-limits
Alright, thank you so much!