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