#gabrielsilva1910

1 messages · Page 1 of 1 (latest)

brisk gyroBOT
golden sail
#

Hello

#

As the error states, you shouldn't be handling card details on your server at all

#

You should be creating Tokens or ideally confirming PaymentIntents client-side instead.

#

Can you tell me more about what you mean by:

I need help because my customers are not selling With credit card

hasty fable
golden sail
hasty fable
#

Is all this just to generate a token? I just want to generate the token, isn't there the option of calling JS to pass the card data and generate the token?

golden sail
#

Yes that is what the above does

#

Really though why are you using this flow at all

#

What you want to do is create a PaymentIntent on your server, pass the client secret to your client and then use confirmCardPayment() with Card Element

#

That has a code example of what this should look like.

hasty fable
#

ok, I'll give the doc another read, thanks for your attention

golden sail
#

Sure