Closed yilmazbingo closed 3 years ago
@yilmazbingo This is by design on our end. Sending raw card details server-side changes your PCI compliance requirements and are harmful to the vast majority of developers and businesses out there. We strongly discourage doing this and instead recommend that you collect card details securely client-side via Elements instead.
Ultimately though, this works if you are already meeting the higher PCI compliance requirements and you can pass card details, it will just be untyped to avoid mistaken adoption by developers.
node version: v14.15.1
This is the type definiton of "Stripe.PaymentIntentCreateParams.PaymentMethodData.Type"
I checked the docs to see if something changed, but it shows "card" on enum:
stripe-docs-enum-type
Here is my code: