我正在尝试在我的iOS应用程序中使用Braintree Dropin UI.
我在沙盒中测试,它工作正常,但只接受卡 - 而不是PayPal?
我只是使用提供的目标C代码.
文档说Add the Drop-in UI with a few lines of code to get a full-featured checkout with credit card and PayPal payments.- 但我的PayPal按钮在哪里?
- (void)showDropIn:(NSString *)clientTokenOrTokenizationKey {
BTDropInRequest *request = [[BTDropInRequest alloc] init];
BTDropInController *dropIn = [[BTDropInController alloc] initWithAuthorization:clientTokenOrTokenizationKey request:request handler:^(BTDropInController * _Nonnull controller, BTDropInResult * _Nullable result, NSError * _Nullable error) {
if (error != nil) {
NSLog(@"ERROR");
} else if (result.cancelled) {
NSLog(@"CANCELLED");
} else {
// Use the BTDropInResult …Run Code Online (Sandbox Code Playgroud)