#anantjaiswal_38184
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- anantjaiswal_38184, 1 hour ago, 2 messages
Hi! that doc is specifically about our card-present terminal card readers, not online payments on a website. Are you using Terminal?
yes i'm using terminal but the solution i want is about How to add card detail in customer.
well the options are the ones described in the doc yep. What specific difficulty did you run into, what are exampless of Customers/PaymentIntents/SetupIntents (their IDs) that you created where you see behavior you don't expect, can you share some technical detail?
@jolly summit let me describe you what i am trying to archive is when some customer add there card detail like Number, cvc, expdate ..etc. on back i have to add that card detail in Payment Method of that Customer for the future use [ like payment with that]. The Problem what i'm facing is that i can't exactly find or get what code will work to do that job. Just have to ask which code or example can help me to archive what i want.
I'm sorry but that's super vague. Do you have some code you're written that you have a question about?
The guide you linked shows how you can use Terminal to have a customer insert their card into a reader, and save those card details to a PaymentMethod to a Customer object in order to be used for future payments. Which is what you're asking for, right?
yes this is what i want "save those card details to a PaymentMethod to a Customer object in order to be used for future payments" but i not sure if i'm looking right example https://stripe.com/docs/terminal/features/saving-cards/save-cards-directly . This example i run into and i thought this will help me to archive what i want.
yep, that seems like the right guide to follow. Did you have a specific problem you ran into when following the guide?
@jolly summit le me explain what i am trying to do step by step then can you share an example or code for that? what code i was looking is for this task 1) i have card detail(Number, cvc, expdate ..etc) so How can i create Payment method with that? 2) After creating Payment method. How can i add that Payment method in customer.[ Customer already created]
- i have card detail(Number, cvc, expdate ..etc) so How can i create Payment method with that?
you don't. You should never have those details yourself since that would mean your business needs to be PCI compliant.
why do you have those details? where do you get them from in your integration exactly? If you're using normal documented Stripe integrations you'll never have that. And if you're using Terminal you never have those raw details, so I'm super confused.
Ok i understand what you mean. that sentence i'm just assuming that[testing data that i'm passing]. the creation Payment Method that i mentioned is from this example https://stripe.com/docs/api/payment_methods/create .
but that is not code that has anything to do with Terminal and is not something you'd ever do
you'd just follow the guide you linked at the start of the thread. But you haven't actually asked any questions about that guide specifically so I assume you haven't started yet. When you do and have some technical questions about it we can try to help!
Are you referring to this guid https://stripe.com/docs/terminal/features/saving-cards/save-cards-directly. i already started it and i am doing this on .net core and i was blocked on last 3rd and 4th part which i don't widely understand. like we are getting paymentMethods with customer ID but what i have to do is to add (payment method) card detail then attach that with customer. tell me if i'm looking at wrong guide for this.
yes, that guide.
last 3rd and 4th part which i don't widely understand
which part don't you understand exactly?
if you're following that guide now, do you have an ID seti_xxx of a SetupIntent you've created and are using?
have you used Terminal before? do you have an existing integration that connects to the reader and accepts a payment?
Can you please tell me how i can add card on file directly from server side code.
Without enabling
usually, you never ever do that, because that would require your business to be PCI compliant and requires special permission from Stripe to be able to do. Do you understand?
without enabling what?
So what i have to use for adding card like i got details from the customer and directly add it on Stripe without interfareing Pci Compliant.
you would never "got details from the customer"
you would use something like stripe.js to build a form that accept the details securely if your use case is a website.
or you would use the guide for Terminal and the reader accepts the details securely if your use case is in-person.
at no point do you have raw credit card numbers(if you do, you need to be PCI compliant).
no, the AddressElement is a stripe.js Element, for frontend code.
it means its mandatory to add js and then call a element and store card data directly
yes
Thank for the Guidance.