I need to implement "Save card" and "Delete card" features in my iOS app. From Stripe documentations I found that we can create a customerId on our backend and link it to our internal userId.
But we need part of card details to display it to user. Eg
Visa card xxxx xxxx xxxx 8153
Thanks.
There are certain details that are available when you store a card; you don't need to store them separately. "Last 4" and type are some of the fields available from the API; check out the Stripe docs for cards for more. https://stripe.com/docs/api#cards
No, you don't need to create a new customer (and in fact, would probably be a bad thing for keeping everything cleanly coordinated). Store additional cards on the same customer.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.