#allianceRes
1 messages · Page 1 of 1 (latest)
Hi there!
You can see all possible subscriptions status here: https://stripe.com/docs/billing/subscriptions/overview#subscription-statuses
Can you clarify how you are creating your subscriptions exactly?
I create a customer then a subscription in my back end
then in my front end I check status of subscription
if it is trialing or active
but I would like to know if stripe can send another status when i create a new subscription
trialing, octive or incompelete
It could also be incomplete, depending on how you create your Subscription.
Can you share a subscription ID (sub_xxx), so I can learn more about your integration?
sub_1MU4whGfA2lQACd1tc6df9Sf
Got it. Then yes, if the payment fails you would get an incomplete subscription in this case.
I get status = incomplete only when there is an action required
Yes that's one way the payment can fail. It can also be declined by the bank because there are not enough funds on the account, or they think it's a fraudulent transactions. In all these cases you would get an incomplete subscription.
in these cases stripe sent me an error message before creating th customer
You can use this test card for this: https://stripe.com/docs/testing?testing-method=card-numbers#declined-payments
ok thank you!
I have another question:
For this subscription the card need an authentification: sub_1MU5iOGfA2lQACd1q8pDvphA
we don't have a webhoook in our system and we want that Strip inform the customer to authentificate his card
Yes, we have a lot of settings about this in the dashboard: https://dashboard.stripe.com/settings/billing/automatic
our setting is good but we made a test in PROD mode and we don't get any email from stripe
here is the subscription:
sub_1MEamIGfA2lQACd1EF8S5dVP
for this subscription, we did not authenticate the card during registration and after 24 hours Stripe canceled the subscription without sending an email.
These settings only apply to the recurring payment, not the very first payment of a subscription.
Ok thank you!
for the first payment, if the user has not completed the authentication, what do you recommend please?
Can you clarify your flow for the first payment?
- Are you creating a new payment method just to be able to start the subscription?
- Or are you re-using a payment method that you already had saved on the customer in the past?
im creating a new payment to start subscription and the user has not complete the 3DS authentification
Then you should follow this guide: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
At a high level:
- First create the subscription, and retrieve the
latest_invoice.payment_intent.client_secret - Send the client secret to the frontend to collect the payment information with the Payment Element
- If 3DS is required, a popup will appear on the page for the customer
- Once the payment is successful, the subscription will become
active
yes our app is ready, but i mean when then user ignore the 3DS, can we send him an email later?
Yes, but that's something that you'll need to manage on your end.