#martin_98625

1 messages ยท Page 1 of 1 (latest)

sour mulchBOT
primal moth
#

HI ๐Ÿ‘‹

No, creating a payment method with a Setup Intent with perform an auth check either when you first create it (if you create the Setup Intent with a Customer) or when you attach the PM to a Customer.

wheat quarry
#

the payment method and the setup intent are attached to the customer

primal moth
#

I mean, you could always do exactly what you described but it's against our rules and card networks are likely to decline your transactions

wheat quarry
#

the thing is that we're collecting the payment method to be charged after a 7 days trial period

#

but we're getting a bunch of failed payments after those 7 days

#

so we want to be able to genereate this micro payment to validate the payment method before we let them in

primal moth
wheat quarry
#

but that's for payment intents no?

#

not for setup intents

primal moth
#

Yes but in this case you would create the PM using the Payment Intent

wheat quarry
#

so the charge won't happen you say?

primal moth
#

This is how it works

wheat quarry
#

because we tried using payment intents before (without the pre authorization thing) and it was charging the customer right away

primal moth
#

This doc explains how you configure that not to happen but let me break it down

#
  1. You create the Payment Intent for the full amount you plan to charge
wheat quarry
#

also, consider that we have a recurrent subscription going on in there

primal moth
#

Oh

#

So is this for a subscription?

wheat quarry
#

yep

#

so we have a subscription, that we give a 7 day free trial

#

but we want to collect the payment method before we give the 7 day free trial

#

the thing is that stripe is collecting it fine, but 7 days after payments start to fail. We want to detect those failures early, not when the trial ends

#

setup intent is only detecting invalid cards, but not insufficient funds or payments declined by banks

#

which is only detected when the charge is actually happening 7 days after the trial ends

primal moth
#

Unfortunately you cannot do a pre-authorization using Subscriptions.

#

If you wanted to collect payment up front and then add in a trial period, you could do that using Susbcription Schedules

wheat quarry
#

when you say collect the payment up front, you mean collect it and validate that the payment method has sufficient funds?

primal moth
#

I mean actually collect the payment

wheat quarry
#

ya, but we're doing that already with setup intents

#

and the payment element

primal moth
#

No

#

I mean collect the funds, not the payment method

wheat quarry
#

ah

#

so how does that work?

#

subscription schedules

primal moth
#

But the whole idea is that you can schedule changes to your subscription by creating a set of phases.

wheat quarry
#

so how would the whole flow look like?

#

if we want to do what I described above

primal moth
#

Let me test something out to confirm

wheat quarry
#

see the text there

#

that's exactly what we want to do

primal moth
#

But that would be up to you to build

wheat quarry
#

so what if... instead of using a setup intent, we use a payment intent with a charge of 1 usd

#

wouldn't that suffice?

primal moth
wheat quarry
#

but we can't charge less than 1 usd right?

#

I see the minimum is 0.5 USD

primal moth
#

Correct .5 USD is the smallest amount you can charge

wheat quarry
#

so recapping, we could, instead of using a setup intent:

  1. use a payment intent to charge 0.5 usd
#
  1. collect the payment method
#

is this correct?

primal moth
#

Correct

wheat quarry
#

does stripe charges us for that refund?

primal moth
#

Stripe will charge a fee on the payment and you won't get it back on the refund but there won't be an additional fee for the refund

wheat quarry
#

do you know what that fee is?

#

so that we can make numbers

primal moth
wheat quarry
#

cool! thank you!