#Jairo-payment-intent
1 messages · Page 1 of 1 (latest)
I think PaymentIntent cannot be created
this is the request ID: req_qelYSz6HenG6sQ
it says that any resource is blocked, and then the PaymentIntent creation request returns a HTTP 429 error
which resource is locked in this case?
checking now
thanks
it happens trying to pay 3 items in our multiple-item checkout. It allows to select some items and the process creates/updates a subscription for each item sequentially. Probably this process are being executed too fast and any resoure (customer, subscription...) is locked by Stripe in some subscription update?
It looks like it's locked due to subscription update API: https://dashboard.stripe.com/test/logs/req_rPEL6qh8JCo0uP
Yeah, probably is caused by what I said, right?
Yup!
How could we manage this kind of errors? Should we implement a retry policy in our implementation?
Did you wait for the subscription update to complete, then ask user for payment?
Or did you do both actions in parallel?
we are making the subscription update with the 'always_invoice' option seted to true
then, the payment is fired automatically by Stripe and we only wait for the payment response to check if it needs 3DS verification
Did you modify any price like upgrade/downgrade during the update subscription call?
proration_behavior only takes effect when there's any change to the plan
it adds items to monthly subscription, and some items are incrementing the monthly amount and then it is charging inmediatelly
In this case, I recommend to wait for customer.subscription.update event, then collect payment from the customer