#bilalfarman_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1238481466598490182
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey there, as the error message says, this is not recommended.
As the end of the message also says (cut off in what you pasted above) this is possible to enable, but you must contact support to request access after proving PCI compliance.
So best thing is to not do this, and use Elements instead to colelct card details securely.
If you require sending raw card details via the api, you need to talk to support: https://support.stripe.com/contact
here how I am collecting the card data
isn't it secure?
check the screenshot
I see no screenshot, but you code shows you sending card details to our api directly
Those look like your own form fields, which you're sending to the API
can't we use own fields instead of stripe form?
Not by default, no. That requires access to send raw card details since you are handling those values.
You need to be PCI compliant to do that
If I create the payment intent first and then can I use my own fields form in this case with client_id or token of payment intent?
No, you still need to use elements & Stripe.js to confirm client side
I am using stripe.js
here is CDN
<script type="text/javascript" src="https://js.stripe.com/v2/"></script>
If you're building this new currently, you should be using v3
And then you can use the card element to collect those card details
So in V2 or V3 I need to implement stripe form to collect card information right?
Correct, using ELements like the Payment Element or Card Element
https://docs.stripe.com/payments/elements
But implementation of element is disturbing my existing theme flow, how I can tackle it?
You can style the Payment Element using the Appearance API or the Card Element using the style object:
https://docs.stripe.com/elements/appearance-api
https://docs.stripe.com/js/elements_object/create_element?type=card#elements_create-options-style