#zafeer_best-practices
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/1233036973237862503
๐ 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.
- zafeer_code, 3 hours ago, 15 messages
- zafeer_code, 5 hours ago, 7 messages
hi there!
you can't get the full card number, but you can get some information about the card, including the last 4 digits.
if you are using a PaymentMethod, then the info is here: https://docs.stripe.com/api/payment_methods/object#payment_method_object-card
why can't I get the full card number, I wanted to get the details so the customer don't have to enter the details again.
it's forbidden by law to have accese to full card numbers, except if you are PCI compliant.
if you enable a card for future usage, then you can reuse the payment method later without the user having to re-enter their payment information
how can I become a PCI compliant
you can learn more about this here: https://stripe.com/guides/pci-compliance, but this is extremely complex
like I said this is not needed, you can just setup the card for future usage with the API, this will allow you to reuse the card in the future.
I have read the documentation but can't seem to find the specific section, can you help me?
the specific section for what?
how to save a card for future usage?
first, can you clarify how are you accepting payments? Checkout Session, Payment Element, something else?
how to save a card for future usage?
first, can you clarify how are you accepting payments? Checkout Session, Payment Element, something else?
checkout session
Hi there ๐ jumping in as my teammate needs to step away.
If you want to only collect payment method details, or said another way not also process a payment while collecting payment method details, then you'll want to use one of the flows in this guide:
https://docs.stripe.com/payments/save-and-reuse
If you want to save the payment method details while simultaneously processing a payment, you'll want to follow the instructions in this optional section in addition to the core steps of that guide:
https://docs.corp.stripe.com/payments/accept-a-payment?platform=web&ui=stripe-hosted&lang=node#save-payment-method-details