get card brand/type in iOS

70 views
Skip to first unread message

Anders Kjeldsen

unread,
Sep 18, 2016, 9:18:00 AM9/18/16
to Stripe API Discussion
On Android I get create a Card object with the full card number and then call card.getType() to get the type (Visa, Mastercard etc.) - The method figures out the type based on the card number.

Is there a similar way to get this card type/brand with the iOS API ?

Fred Alger

unread,
Sep 19, 2016, 10:14:14 AM9/19/16
to api-d...@lists.stripe.com
Hi Anders,

If you've got an STPCard object (as returned by some methods in the iOS SDK), it's the "type" property:


Hope that clears things up!

Best,
- Fred.



On Sun, Sep 18, 2016 at 8:44 AM, Anders Kjeldsen <kjeldse...@gmail.com> wrote:
On Android I get create a Card object with the full card number and then call card.getType() to get the type (Visa, Mastercard etc.) - The method figures out the type based on the card number.

Is there a similar way to get this card type/brand with the iOS API ?

--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss+unsubscribe@lists.stripe.com.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.

Reply all
Reply to author
Forward
0 new messages