【发布时间】:2016-04-10 06:54:33
【问题描述】:
我是使用 paypal-iOS-SDK 的新手。我想测试我的应用程序的付款部分。我使用paypal SDK作为支付平台。我的代码是这样的:
// Create a PayPalPaymentViewController.
PayPalPaymentViewController *paymentViewController;
paymentViewController = [[PayPalPaymentViewController alloc] initWithPayment:payment configuration:self.payPalConfiguration delegate:self];
我检查了 PayPalConfiguration 类。我没有找到任何属性来设置receiverEmail。我查看了一些旧文档。然后找到这样的代码:
// Create a PayPalPaymentViewController with the credentials and payerId, the PayPalPayment
// from the previous step, and a PayPalPaymentDelegate to handle the results.
PayPalPaymentViewController *paymentViewController;
paymentViewController = [[PayPalPaymentViewController alloc] initWithClientId:@"YOUR_CLIENT_ID"
receiverEmail:@"YOUR_PAYPAL_EMAIL_ADDRESS"
payerId:aPayerId
payment:payment
delegate:self];
谁能告诉我如何设置receiverEmail以使用最新的paypal-iOS-SDK(2.12.9)接收付款。非常感谢!
【问题讨论】: