【问题标题】:iOS: step wise PayPal braintree integrationiOS:逐步的 PayPal 脑树集成
【发布时间】:2017-12-28 08:31:44
【问题描述】:

在我的应用程序中,我需要提供,客户应该使用信用卡付款。 Paypal 移动 SDK 不支持。

所以我需要整合大脑树,但我没有找到合适的步骤来整合它。

谁能帮我将paypal Braintree集成到我的应用程序中。

【问题讨论】:

  • 相信上面的链接已经够用了
  • 谢谢。我已经浏览了这个链接,但我有一些疑问,比如在哪里设置付款金额和收款人详细信息。在服务器设置中如何创建 url 以及从哪里建立到 paypal 的连接。

标签: ios objective-c paypal braintree


【解决方案1】:

加油!!!

在下面搜索文档以获取更多详细信息!

https://developers.braintreepayments.com/guides/paypal/client-side/ios/v4

#import "BraintreePayPal.h"

- (void)viewDidLoad {
[super viewDidLoad];

self.braintreeClient = [[BTAPIClient alloc] initWithAuthorization:@"<#CLIENT_AUTHORIZATION#>"];

UIButton *customPayPalButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 60, 120)];
[customPayPalButton addTarget:self
                       action:@selector(customPayPalButtonTapped:)
             forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:customPayPalButton];
}


- (IBAction)customPayPalButtonTapped:(id)sender {
BTPayPalDriver *payPalDriver = [[BTPayPalDriver alloc] initWithAPIClient:self.braintreeClient];
payPalDriver.viewControllerPresentingDelegate = self;
payPalDriver.appSwitchDelegate = self; // Optional

// Start the Vault flow, or...
[payPalDriver authorizeAccountWithCompletion:^(BTPayPalAccountNonce *tokenizedPayPalAccount, NSError *error) {
    ...
}];

// ...start the Checkout flow
BTPayPalRequest *request = [[BTPayPalRequest alloc] initWithAmount:@"1.00"];  //Here you need to enter the amount 
[payPalDriver requestOneTimePayment:request
                        completion:^(BTPayPalAccountNonce *tokenizedPayPalAccount, NSError *error) {
    ...
}];
}

【讨论】:

  • 您是否成功地在您的任何应用程序中完成了 Braintree 集成?
  • 你能亲自指导我吗?
  • 好的,请问有什么可以帮你的
  • 谢谢,请告诉我如何联系您?
  • 我们在设置简单服务器时遇到了问题。那你能帮我吗
猜你喜欢
  • 2012-10-05
  • 2011-07-05
  • 1970-01-01
  • 2013-08-18
  • 2016-01-01
  • 2013-02-25
  • 2017-08-06
  • 1970-01-01
  • 2016-01-07
相关资源
最近更新 更多