#mitsu_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/1293393317471719467
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mitsu_api, 15 hours ago, 58 messages
- mitsu_code, 5 days ago, 23 messages
Hi! Using raw PAN is not recommended.
We do have alternatives that you can utilise to collect payment method details such as Checkout, Elements, or our mobile SDKs.
However, if your business case requires you to handle raw PANs, you will need to be PCI (SAQ) D compliant. You can reach out to Stripe support with the relevant document as described in this document.
That means in step paymentMethods->create, use stripe.js to get pm_xxxxxx, right?
because the credit card information collection form is self-designed
Yes!
This is the link for PHP: https://docs.stripe.com/payments/quickstart?lang=php
Do note however, Laravel may have its own API for Stripe payment integration. For that you will need to consult Laravel's doc.
Checkout and Payment Elements (non-deferred flow) do not require you to call the create payment method API call. Which integration are you using?
In my system, a customer will have many credit cards, so I have to save all payment methods.
Is the code I just sent correct?
The correct code to create a payment method via Stripe.js API can be referenced here: https://docs.stripe.com/js/payment_methods/create_payment_method. You can create a payment method and then use that to create payments.
Can I check if you are SAQ D compliant?
๐ Jumping on here. @pine blade It's most likely you are on the incorrect path when you are trying to create a PaymentMethod from raw pan, which requires PCI Compliance as my colleague has been repeatedly telling in this thread. This is normally not the path you want to pursuade, unless you know exactly what PCI Compliance and SAQ means. More at https://docs.stripe.com/security/guide
In a few discussions back you mentioned you are using https://www.npmjs.com/package/vue-credit-card-validation and by a quick glance, I believe they are not PCI Compliance, which will expose you to PCI Compliance too. You should abandon that library and strictly follow our guide on https://docs.stripe.com/payments/accept-a-payment.