#Dilanbops

1 messages · Page 1 of 1 (latest)

humble bisonBOT
umbral talon
#

What specifically are you looking to do? Is there an associated payment? Or is this just to collect payment details for future payments?

muted tusk
#

Collect payment details for future payments using payment element

umbral talon
#

You need to create a Setup Intent first, and then collect payment details and confirm with Stripe.js/Elements.

muted tusk
#

Does this tokenize the card?

#

The API docs says Tokenization is the process Stripe uses to collect sensitive card or bank account details, or personally identifiable information (PII), directly from your customers in a secure manner. A token representing this information is returned to your server to use. You should use our recommended payments integrations to perform this process client-side. I just want to know from client-side how can can I collect card details and tokenize it through Payment element

umbral talon
umbral talon
muted tusk
#

So is the payment method token itself the tokenized card?

umbral talon
#

Exactly! It's an API object that can be used to process payments

muted tusk
#

Got it, Thanks, but if someone gets hold of payment method token and publishable key from client side, can they make a successful payment?

umbral talon
#

No, they'd need your secret keys in order to create a Payment Intent

muted tusk
#

Can't I just send payment method token and authorize it through publishable key and make a confirm API call?

umbral talon
#

No, you need a Payment Intent object in order to process a payment

muted tusk
#

Okay Thanks

umbral talon
muted tusk
#

Hey had one more doubt

#

Is the payment method token temporary or short lived?

umbral talon
#

No, they're permanent objects in the API. Depending on how you create them, they may not be reusable (i.e. multiple payments).

muted tusk
#

Ok got it