Closed delebedev closed 8 years ago
Hey there! That makes a lot of sense; we'll open up an API for them in a future release. In the meantime, you should be able to load them as follows:
[UIImage imageNamed:imageName inBundle:[NSBundle bundleForClass:[STPAPIClient class]] compatibleWithTraitCollection:nil];
where imageName
is one of stp_card_amex
, stp_card_diners
, stp_card_jcb
, stp_card_mastercard
, stp_card_visa
.
@garnett I have submitted #284 to expose class methods that will return UIImage
s for each STPCardBrand
.
Hey @garnett, we've added some additional helper methods in the 6.1.0 release - hope this gives you what you're looking for. Cheers!
I'm using
STPPaymentCardTextField
which is really handy, but now I have 2 sets of card icons in my app. Do you think is it worth to expose them?