简体   繁体   中英

Stripe on iOS and saving card details

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

  1. Is it ok to store this data on backend and iOS app? I'm talking about card type and last 4 digits.
  2. Should we create new customerId in Stripe if we want to store more than one card per customer?

Thanks.

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

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM