0

我在 Android 上使用 PayPal 的移动支付库来接受服务付款。但是,将货币设置为欧元时,我没有弹出登录屏幕。仅适用于美元。任何人都可能知道为什么?我没有收到任何消息、错误或回调。将不胜感激任何帮助。谢谢

public void PayPalButtonClick(View arg0) {
          // Create a basic PayPal payment
          PayPalPayment payment = new PayPalPayment();

          // Set the currency type
          payment.setCurrencyType("EUR");

          // Set the recipient for the payment (can be a phone number)
          payment.setRecipient("email@email.com");

         // Set the payment amount, excluding tax and shipping costs
          payment.setSubtotal(new BigDecimal(9999.9));

          // Set the payment type--his can be PAYMENT_TYPE_GOODS,
          // PAYMENT_TYPE_SERVICE, PAYMENT_TYPE_PERSONAL, or PAYMENT_TYPE_NONE
          payment.setPaymentType(PayPal.PAYMENT_TYPE_SERVICE);

          // PayPalInvoiceData can contain tax and shipping amounts, and an
          // ArrayList of PayPalInvoiceItem that you can fill out.
          // These are not required for any transaction.
          PayPalInvoiceData invoice = new PayPalInvoiceData();

          // Set the tax amount
          invoice.setTax(new BigDecimal(99.0));

          Intent paypalIntent = PayPal.getInstance().checkout(payment, this);
          this.startActivityForResult(paypalIntent, 1);
    }
4

2 回答 2

2

你是对的......对于欧元货币,每笔交易的默认限额为 8,000.00 欧元</p>

你可以在这里查看

于 2014-02-04T11:07:14.030 回答
0

终于找到答案了……真的很蠢。小计为 9999.0。我所做的只是将这个数字减少到 99.0。原因可能是当切换到欧元时,超出了限制或其他原因。不确定,但它确实有效。所以要小心我猜的那些高默认数字。

于 2013-04-23T15:16:25.700 回答