#datedm

1 messages ยท Page 1 of 1 (latest)

west pumiceBOT
fierce bough
knotty skiff
#

checking now..

#

we're using the Checkout

fierce bough
#

Okay. So you are creating Checkout Sessions in subscription mode with a free trial included as part of the subscription

knotty skiff
#

correct.

fierce bough
#

Since there's no charge there's no authorization until the free trial is over at which point the scammers have already used your service for the length of the trial, correct?

knotty skiff
#

yes. our UI will change after the card is rejected and our service becomes unusable until they add a valid payment method.

But - they are just making totally new accounts and using the same bad cards to get more free trials.

fierce bough
knotty skiff
#

im not following you

#

how will that prevent them from using cards with invalid funds on them

fierce bough
#

When you attach a new payment method to the Customer record it will trigger a card validation

knotty skiff
#

ahh ok

#

one moment, i have a couple more questions but im tied up right now, ill reply in a few

knotty skiff
#

How does that flow create a free trial? Can you create free trials the same with setup mode?

knotty skiff
civic carbon
#

No. setup mode only created a saved payment method on the customer which will trigger card validation. After the payment method is saved, then you create a subscription with trial using Subscription API (not Checkout Session API) and attach the saved payment method to the subscription: https://stripe.com/docs/billing/subscriptions/trials

knotty skiff
#

So, is this the flow you're suggesting:

  • User clicks sign up
  • Create a checkout session with mode setup
  • User enters card details
  • User submits form
  • Use checkout.session.completed webhook to listen for completion
  • On completion, grab the setup intent and attach it to the customer
  • If the card validation passes, create the subscription with the free trial
  • If the card validation fails, do not create the subscription and tell the user in the UI somewhere that their subscription creation failed due to a bad card
civic carbon
#
  • On completion, grab the setup intent and attach it to the customer
    This step is not required as setup intent will attach the payment methods to customer