2017-04-11 8 views
3

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]; 
} 

iOS Screenshot (o

答えて

7

は言う:

By default, Drop-in only ships with support for cards. You can include additional payment methods by adding their respective pods.

あなたはこれらのオプションを追加する必要があります。

0応答のための
Ruby 
pod 'Braintree/PayPal' 
pod 'Braintree/Venmo' 
pod 'Braintree/Apple-Pay' 
pod 'Braintree/3D-Secure' 

https://developers.braintreepayments.com/guides/drop-in/ios/v4#pods

+0

ありがとうございました - 私はそれを逃した方法を知らない! – markt

1

それはあなたがLSApplicationQueriesSchemesを追加見逃している可能です:開発者ページとして

https://developers.braintreepayments.com/guides/client-sdk/setup/ios/v4#register-a-url-type

+0

感謝。私はそれらを追加しましたが、 '-canOpenURL:URLに失敗しました:" com.paypal.ppclient.touch.v1:// " - error:"操作を完了できませんでした(OSStatusエラー-10814)。 ""ログで? – markt

+0

info.plistを提供できますか? –

+0

https://gist.github.com/marktreble/81ed1e6cb194bc77b2b3488231ed0681 – markt

関連する問題