【问题标题】:I can't connect paypal account with Mobile Payment Libraries我无法将 paypal 帐户与移动支付库连接
【发布时间】:2013-06-07 13:40:21
【问题描述】:

我对“移动支付库”有一点问题,因为我不是美国开发者,所以我无法使用 paypal SDK。

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

我更改“PayPalPayment 收件人”以检查沙盒帐户是否收到钱。我运行应用程序,Paypal 按钮正确显示,但是当我为其他沙盒帐户编码电子邮件和密码时,连接按钮被禁用。此后,此按钮一直处于禁用状态。此应用程序已从设备中删除并卸载,我再次下载“iOS Mobile Payments Library SDK”并再次运行,连接按钮已禁用,无需修改贝宝代码。

为什么按钮已经被禁用?

对不起我的英语。

这是我修改后的代码调用购买按钮 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];
}

【问题讨论】:

    标签: ios paypal


    【解决方案1】:

    检查你的日志,也许你有这个消息: PayPalPayment 无法处理:目前,“USD”是唯一允许的货币代码。

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

    【讨论】:

      【解决方案2】:

      有同样的问题。当您粘贴电子邮件/密码时,它不活动。当您手动输入时 - 它对我有用。

      【讨论】:

        猜你喜欢
        • 2012-04-01
        • 2012-04-10
        • 2015-11-07
        • 2015-10-01
        • 2012-07-02
        • 2020-09-05
        • 2013-09-10
        • 2015-04-16
        • 1970-01-01
        相关资源
        最近更新 更多