mirror of
https://github.com/zhigang1992/braintree-ios-drop-in.git
synced 2026-01-12 17:12:48 +08:00
25 lines
597 B
Objective-C
25 lines
597 B
Objective-C
#import "BTDropInResult.h"
|
|
|
|
#if __has_include("BraintreeUIKit.h")
|
|
#import "BraintreeUIKit.h"
|
|
#else
|
|
#import <BraintreeUIKit/BraintreeUIKit.h>
|
|
#endif
|
|
|
|
@implementation BTDropInResult
|
|
|
|
- (UIView *)paymentIcon {
|
|
return [BTUIKViewUtil vectorArtViewForPaymentOptionType:self.paymentOptionType];
|
|
}
|
|
|
|
- (NSString *)paymentDescription {
|
|
if (self.paymentMethod != nil) {
|
|
return self.paymentMethod.localizedDescription;
|
|
} else if (self.paymentOptionType == BTUIKPaymentOptionTypeApplePay) {
|
|
return [BTUIKLocalizedString PAYMENT_METHOD_TYPE_APPLE_PAY];
|
|
}
|
|
return @"";
|
|
}
|
|
|
|
@end
|