iOSアプリケーションでBraintree Dropin UIを使用しようとしています。Braintree iOSドロップインでPayPalが表示されない
私はサンドボックスでテストしていますが、うまく動作しますが、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 properties to update your UI
// result.paymentOptionType
// result.paymentMethod
// result.paymentIcon
// result.paymentDescription
}
}];
[self presentViewController:dropIn animated:YES completion:nil];
}
ありがとうございました - 私はそれを逃した方法を知らない! – markt