#Dilanbops
1 messages · Page 1 of 1 (latest)
What specifically are you looking to do? Is there an associated payment? Or is this just to collect payment details for future payments?
Collect payment details for future payments using payment element
You'd follow this guide then: https://stripe.com/docs/payments/save-and-reuse?platform=web
You need to create a Setup Intent first, and then collect payment details and confirm with Stripe.js/Elements.
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
It creates a Payment Method object, yes
The Payment Element creates a 'token' of the payment data collected yes. If you use Elements, you're eligible for our PCI compliance: https://stripe.com/docs/security/guide#validating-pci-compliance
So is the payment method token itself the tokenized card?
Exactly! It's an API object that can be used to process payments
Got it, Thanks, but if someone gets hold of payment method token and publishable key from client side, can they make a successful payment?
No, they'd need your secret keys in order to create a Payment Intent
Can't I just send payment method token and authorize it through publishable key and make a confirm API call?
No, you need a Payment Intent object in order to process a payment
Okay Thanks
The general flow is outlined here: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
No, they're permanent objects in the API. Depending on how you create them, they may not be reusable (i.e. multiple payments).
Ok got it