#rnluu

1 messages · Page 1 of 1 (latest)

glossy swanBOT
wind kestrel
#

Hi there

#

When you attach a card to a Customer or confirm a SetupIntent then we run an authorization with the issuing bank.

#

The main reason that SetupIntents are recommended is that they allow you to handle 3DS on set up, whereas attaching to a Customer does not.

analog lake
#

So are you saying that :

card, err := r.stripe.Cards.New(&stripe.CardParams{
            Customer: stripe.String(customer.StripeID),
            Token:    opts.creditCardToken,
        })

AND

setupIntent, err := r.stripe.SetupIntent.New

Both perform authorizations?

#

So what exactly does an authorization entail?

#

We use the former method currently and still run into cases with fraudulent cards.

wind kestrel
analog lake
#

Hmmm, how do we guarantee authorization to happen?

#

And when is it the case that authorization won't happen?

#

But to go back to the original follow up question, would the stripe.Cards.New and stripe.SetupIntent.New basically do the same thing under the hood: auth the card?

wind kestrel
#

Mostly yes. The only difference is that the SetupIntent will help you handle 3DS if it is required due to the authorization.