#Nars
1 messages · Page 1 of 1 (latest)
Hi, unfortunately Elements doesn't have have functionality. But you can build it yourself, by querying the Customer's PaymentMethod in backend and returns back theirs last4 to display in frontend in your own UI
how to querying the Customer's PaymentMethod
what are the steps to implement the save cards flow can you please explain?
Also is this applicable for web and mobile? I am confused about the ephemeral key usage in case it is applicable for this
Yes it's applicable for both web and mobile. I am talking about server-side/backend API call, ie List Customer's PaymentMethod API https://stripe.com/docs/api/payment_methods/customer_list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Then you pass the PaymentMethod's card's last4 back to frontend
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Then in your frontend, either web or mobile, build an UI to display cards as "****last4"
Okay will have a look at this
Can you pls let me know if I have to worry about this: "A Customer Ephemeral Key (optional). Information on the Customer object is sensitive, and can’t be retrieved directly from an app. An Ephemeral Key grants the SDK temporary access to the Customer."
This link says I need ephemenral key to access sensitive customer information
Hi! I'm taking over this thread.
Sorry about the delay.
Can you clarify what you mean by "if I have to worry about this"? What are you trying to do?
I want to save a customer's cards details and display them later so that the customer does not have to enter their card details for every purchase
Want to do this for my mobile and web app
@safe plume suggested I achieve this through the list customer's payment methods API
I mean do I have to add an endpoint on my server to fetch ephemeral key
It depends, what you are trying to do?
Just trying to save cards and display them
How do I call this API with the Publishable key
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
👋 taking over for my colleague. Let me catch up.
this is only possible with secret keys unfortunately
@alpine lotus please use this thread for any follow up Q
like this one
Team, for 3DS 2.0 how do we send the brower detaile?