#Reyansh Sharma
1 messages · Page 1 of 1 (latest)
hello! can you share more on the issues you're facing?
For subscription with ID sub_1MJHqQK8SGfgbRnhkOoc2EcE was able to charge the crad automatically
Though subscription with ID sub_1MJHp8K8SGfgbRnhPMjMIajV created successfully but first invoice status if Open. Having this type of issues with multiple stripe test accounts.
Your code is passing payment_behavior = default_incomplete which indicates to Stripe that you don't want us to attempt to pay the Invoice by confirming its underlying PaymentIntent. You need to explicitly confirm the underlying PaymentIntent.
For the subscription whose first invoice was successful - you manually confirmed the PaymentIntent. See https://dashboard.stripe.com/test/logs/req_kTrUuMp9POr3fW
alternatively, if you want Stripe to automatically attempt payment of the Invoice on creation, what you need to do is switch to payment_behavior = allow_incomplete instead. This means Stripe will attempt a payment synchronously but if it fails or requires a customer action (such as doing 3DS) it won't error and still go through with the update. This will then let you attempt to confirm the PaymentIntent client-side if needed.