我正在关注以下教程 https://developers.braintreepayments.com/guides/drop-in/ios/v4
在此,当我将支付细微差别发布到服务器时,我发现了问题。在输入卡详细信息后,UI的下降仍然存在。并且选项仍然启用,因此当付款细微差别正在进行时,用户可以选择其他选项
这是我的代码
BTDropInRequest *request = [[BTDropInRequest alloc] init];
BTDropInController *dropIn = [[BTDropInController alloc] initWithAuthorization:client_TOK request:request handler:^(BTDropInController * _Nonnull controller, BTDropInResult * _Nullable result, NSError * _Nullable error) {
if (error != nil) {
NSLog(@"ERROR");
} else if (result.cancelled) {
NSLog(@"CANCELLED");
[self dismissViewControllerAnimated:YES completion:NULL];
} else {
[self performSelector:@selector(dismiss_BT)
withObject:nil
afterDelay:0.0];
[self postNonceToServer:result.paymentMethod.nonce];
}
}];
[self presentViewController:dropIn animated:YES completion:nil];
在上面这张图片中,我想在输入卡片细节/ Paypal后隐藏Braintree的内容
提前致谢