#Jairo-payment-intent

1 messages · Page 1 of 1 (latest)

boreal glade
#

👋 Happy to help

#

Can you share the Payment Intent ID (pi_xxx)?

copper sinew
#

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?

boreal glade
#

checking now

copper sinew
#

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?

boreal glade
copper sinew
#

Yeah, probably is caused by what I said, right?

boreal glade
#

Yup!

copper sinew
#

How could we manage this kind of errors? Should we implement a retry policy in our implementation?

boreal glade
#

Did you wait for the subscription update to complete, then ask user for payment?

#

Or did you do both actions in parallel?

copper sinew
#

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

boreal glade
#

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

copper sinew
#

it adds items to monthly subscription, and some items are incrementing the monthly amount and then it is charging inmediatelly

boreal glade
#

In this case, I recommend to wait for customer.subscription.update event, then collect payment from the customer