#allianceRes

1 messages · Page 1 of 1 (latest)

urban barnBOT
rustic wigeon
#

Hi there!

#

Can you clarify how you are creating your subscriptions exactly?

upbeat lodge
#

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

rustic wigeon
#

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?

upbeat lodge
#

sub_1MU4whGfA2lQACd1tc6df9Sf

rustic wigeon
#

Got it. Then yes, if the payment fails you would get an incomplete subscription in this case.

upbeat lodge
#

I get status = incomplete only when there is an action required

rustic wigeon
#

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.

upbeat lodge
#

in these cases stripe sent me an error message before creating th customer

rustic wigeon
upbeat lodge
#

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

rustic wigeon
upbeat lodge
#

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.

rustic wigeon
#

These settings only apply to the recurring payment, not the very first payment of a subscription.

upbeat lodge
#

Ok thank you!
for the first payment, if the user has not completed the authentication, what do you recommend please?

rustic wigeon
#

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?
upbeat lodge
#

im creating a new payment to start subscription and the user has not complete the 3DS authentification

rustic wigeon
#

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
upbeat lodge
#

yes our app is ready, but i mean when then user ignore the 3DS, can we send him an email later?

rustic wigeon
#

Yes, but that's something that you'll need to manage on your end.