#Jérôme-subscription

1 messages · Page 1 of 1 (latest)

silver saffron
#

Hi 👋 do you have the subscription ID (sub_XXX) of the subscription that went into the incomplete status?

round lagoon
#

Thank you so much, yes I do, you need it ?

silver saffron
#

Yes please, I'll pull it up on my end and take a closer look.

round lagoon
#

Ok : sub_1Jya2JAuZCAu2YyVc9wQrzY1

silver saffron
#

Thanks, still digging.

What I'm seeing so far, is that the subscription was created. An invoice was then created for the first payment, but that invoice expired before payment was completed so the subscription ended.

round lagoon
#

Yes it was created, but the subscription should be active as usual, I don't understand why payment is not complete ?

silver saffron
#

Apologies for the delay, I'm still looking into this.

round lagoon
#

No problem 😀 thank you

silver saffron
#

Based on what I'm seeing, the payment needed to go through 3DS verification, but I'm not seeing that this was actually completed.

round lagoon
#

It's strange because 3DS verification has been done successfully, this problem happened twice with two different accounts

charred narwhal
#

@round lagoon I'm taking over for @silver saffron here who has to step away

#

The invoice in_1Jya2JAuZCAu2YyV75qSlBcU associated with the subscription you shared was never paid

#

When you create a subscription, the first invoice needs to be paid within 24h or the incomplete subscription expires

round lagoon
#

Hi and thank you, I understand but in my request the default param for a subscription is charge_automatically, when I subscribe a customer his default card should be debited and the subscription should switch to active

charred narwhal
#

Sorry, I mixed up questions here, one sec

round lagoon
#

no problem 😉

charred narwhal
#

Sorry about that @round lagoon -- confused myself 😅

#

Ok so looking at this i do see you have the PM setup with a setup intent that succeeded

#

But the payment for the subscription's first invoice went to requires_action

round lagoon
#

Ha, and where I can change this param requires_action, in my subscription request or my dashboard ? I would like to check this param on online doc but stripe.com is down 😕

charred narwhal
#

Well in the subscriptions creation response you can see it in incomplete -- if you expand the latest invoice and payment intent you can inspect the payment intent status and use it to complete the payment, as described here:

#

Since you did have the payment method set up for off session payments, you can also try creating the subscription as off session:
https://stripe.com/docs/api/subscriptions/create#create_subscription-off_session

but you need to make sure to handle these authenticate requirements regardless, as the issuer can always ask for it at their discretion.

round lagoon
#

What I don't understand is that the 3D secure window opened and worked, if this is the action that was required. What I could do is change the invoice to "Paid" just after the request to force the debit, otherwise try this off_session parameter

thin canopy
#

hello, catching up here, one second

#

ok let's reset a bit

What I don't understand is that the 3D secure window opened and worked, if this is the action that was required.

where did this happen? On the first SetupIntent that you used on the PaymentMethod?

round lagoon
#

Hi, thank you

#

my customer got a default credit card, and no subscription

#

and when i subscribed this customer as usual, the subscription become incomplete instead of Active

#

but i think I should try this param : off_session because my customer can record a credit card and subscribe the next week

thin canopy
#

well lets take a step back again

#

how did you do this:

my customer got a default credit card, and no subscription
I imagine you did this through a SetupIntent, right?

#

and you did the whole 3DS authentication then too, right?

round lagoon
#

Yes of course, he record a card throw checkout/sessions with Setup param

#

then 3D secure is calling, and work fine

#

the subscription is a next step

thin canopy
#

ok I'm following on, so when is the Subscription created? Do you create that immediately after Checkout is completed by the customer?

round lagoon
#

no he can be later, several days for example, it's never immediately

thin canopy
#

ah ok following along still, do they arrive in your payment page to do it? or do you automatically create the Subscription for them n days later, like automated?

round lagoon
#

They have a button "Subscribe", they can push it when they are ready to paid

#

and they are ready to engage, so it's not automatic

thin canopy
#

got it so

#

technically that qualifies as an "on session" Subscription

#

in which case, the 3155 card or any other 3DS card would still prompt for authentication in test mode, as the 3155 card only works for "off_session" payments, i.e. it won't require 3DS if it was previously set up

#

so you can use the "off_session: true" param when creating the Subscription in your case and it should NOT ask for authentication and paymetn should succeed

#

but really, in your scenario is technically on_session and not off_session

round lagoon
#

OK, so when a customer get subscribe using a record credit card, I have to add on_session: true in my subscribe request

thin canopy
#

well no

#

on_session: true is already the default

#

you need to do off_session: true

round lagoon
#

yes 👍

#

ok I try then come back if needed, thank you so much