5 ms·
beware of PCI compliance requirements [0] but you can either create a payment method explicitly [1] or include the card details when handling a card payment [2]
by lx 7y ago
beware of PCI compliance requirements [0] but you can either create a payment method explicitly [1] or include the card details when handling a card payment [2] `{payment_method_data: {card: {…}}}`
[0] https://stripe.com/docs/security#validating-pci-compliance https://stripe.com/docs/security#validating-pci-compliance
[1] https://stripe.com/docs/api/payment_methods/create#create_payment_method-card https://stripe.com/docs/api/payment_methods/create#create_pa...
[2] https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment-no-element https://stripe.com/docs/stripe-js/reference#stripe-handle-ca...
- huhtenberg 7y agoI am aware of [0], but unless I'm missing something neither of the methods allows creating a payment method on the client and then passing its ID to our backend to be executed and set up for 'future use'. That's the flow we had with the v2 and that's what we can't replicate with the v3.
- lx 7y agodisclaimer: not recommended, etc... but ¯\_(ツ)_/¯ https://runkit.com/lxmedina/5d863141b387ad00138e273f https://runkit.com/lxmedina/5d863141b387ad00138e273f
- huhtenberg 7y agoGracias :)