#anantjaiswal_38184

1 messages · Page 1 of 1 (latest)

fast pilotBOT
#

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.

jolly summit
#

Hi! that doc is specifically about our card-present terminal card readers, not online payments on a website. Are you using Terminal?

sleek charm
#

yes i'm using terminal but the solution i want is about How to add card detail in customer.

jolly summit
#

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?

sleek charm
#

@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.

jolly summit
#

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?

sleek charm
jolly summit
#

yep, that seems like the right guide to follow. Did you have a specific problem you ran into when following the guide?

sleek charm
#

@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]

jolly summit
#
  1. 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.

sleek charm
jolly summit
#

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!

sleek charm
#

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.

Save card details for online reuse from an in-person transaction.

jolly summit
#

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?

sleek charm
#

Can you please tell me how i can add card on file directly from server side code.

#

Without enabling

jolly summit
jolly summit
sleek charm
#

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.

jolly summit
#

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).

sleek charm
#

can i use that address element from server side without using js

#

only server side.

jolly summit
sleek charm
#

it means its mandatory to add js and then call a element and store card data directly

jolly summit
#

yes

sleek charm
#

Thank for the Guidance.