#ljtheshoe
1 messages · Page 1 of 1 (latest)
this is the subscription request
{
"payment_behavior": "error_if_incomplete",
"customer": "cus_OPqkEQKhzuLsK4",
"items": {
"0": {
"price": "price_1NJ42sA74xMpD4hDEHjUNcSy"
}
},
"expand": {
"0": "latest_invoice"
}
}
Yeah looks like that's the good card to test. What do you see instead?
the response:
{
"error": {
"code": "subscription_payment_intent_requires_action",
"message": "Payment for this subscription requires additional user action before it can be completed successfully. Payment can be completed using the PaymentIntent associated with `subscription.latest_invoice`. Additional information is available here: https://stripe.com/docs/billing/subscriptions/overview#requires-action",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_eZCI4GlRWdrPMH?t=1691552211",
"type": "card_error"
}
}
I was able to get a successful response if I use off_session=True for subscription creation.
Does it seem reasonable to use this setting if the user will be on_session for the first subscription payment, but will be off_session for all invoices after the first?
off_session
Indicates if a customer is on or off-session while an invoice payment is attempted.
I think it's expected. Did it still require 3DS on your first payment?
it did not require 3ds on the first payment
just curious: what is the use case for a subscription where off_session=False?
It seems unlikely for a user to be on session for recurring invoices of a subscription
Some business does have that scenario, but I agree they should be uncommon