在Android上的PayPal移动支付库中将货币设置为EUR时未获得登录屏幕

时间:2013-04-23 14:58:43

标签: android localization paypal

我在Android上使用PayPal的移动支付库接受服务付款。但是,在将货币设置为EUR时,我没有弹出登录屏幕。只在美元上运作正常。任何人都可能知道为什么?我没有得到任何消息,错误或回调。非常感谢任何帮助。谢谢

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);
    }

2 个答案:

答案 0 :(得分:2)

你是对的...使用欧元货币,每笔交易限额的默认值是8,000.00€

您可以查看here

答案 1 :(得分:0)

最终找到答案......真是太傻了。小计是9999.0。我所做的就是将这个数字减少到99.0。原因可能是,当切换到欧元时,超出了限制或某种程度。不确定,但它确实有效。所以我要小心那些高默认数字。