gpt4 book ai didi

ios - 我无法将 Paypal 帐户与移动支付库连接

转载 作者:太空宇宙 更新时间:2023-11-03 16:34:44 25 4
gpt4 key购买 nike

我对“移动支付库”有一个小问题,我不能使用 paypal SDK,因为我不是美国开发人员。

我从 PayPal 下载了 iOS 移动支付库 SDK。我创建了一个开发者帐户并尝试示例测试。这行得通。

我更改“PayPalPayment 收件人”以检查沙盒帐户是否收到款项。我运行应用程序,Paypal 按钮正确显示,但是当我为其他沙盒帐户编码电子邮件和密码时,连接按钮被禁用。之后这个按钮一直处于禁用状态。这个应用程序被杀死并从设备上卸载,我再次下载“iOS 移动支付库 SDK”并再次运行,连接按钮已经禁用,没有修改 paypal 代码。

为什么按钮已经被禁用了?

对不起我的英语。

这是经过我修改后的代码调用 buy Button Paypal。但我不认为这是问题所在

- (void)simplePayment {
[PayPal getPayPalInst].shippingEnabled = TRUE;
[PayPal getPayPalInst].dynamicAmountUpdateEnabled = TRUE;
[PayPal getPayPalInst].feePayer = FEEPAYER_EACHRECEIVER;

PayPalPayment *payment = [[[PayPalPayment alloc] init] autorelease];
payment.recipient = user.paypalAccount; //Sandbox account Email - Type:BUSINESS - Contry:US
payment.paymentCurrency = @"EUR";
payment.description = description;
payment.merchantName = user.name;

payment.subTotal = [NSDecimalNumber decimalNumberWithString:[NSString stringWithFormat:@"%f",(price * nb)]];

payment.invoiceData = [[[PayPalInvoiceData alloc] init] autorelease];
payment.invoiceData.totalShipping = [NSDecimalNumber decimalNumberWithString:[NSString stringWithFormat:@"%.2f€",type * nb]];

payment.invoiceData.invoiceItems = [NSMutableArray array];
PayPalInvoiceItem *item = [[[PayPalInvoiceItem alloc] init] autorelease];
item.totalPrice = payment.subTotal;
item.name = app.currentTicket.title;
[payment.invoiceData.invoiceItems addObject:item];

[[PayPal getPayPalInst] checkoutWithPayment:payment];
}

最佳答案

检查你的日志,也许你有这样的信息:PayPalPayment 不可处理:目前,“USD”是唯一允许的货币代码。

目前你不能使用欧元作为货币,我有同样的问题。

关于ios - 我无法将 Paypal 帐户与移动支付库连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17048630/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com