Hacker News new | ask | show | jobs
by lx 2457 days 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

[1] https://stripe.com/docs/api/payment_methods/create#create_pa...

[2] https://stripe.com/docs/stripe-js/reference#stripe-handle-ca...

1 comments

I 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.

disclaimer: not recommended, etc... but ¯\_(ツ)_/¯ https://runkit.com/lxmedina/5d863141b387ad00138e273f
Gracias :)