2013-04-23 159 views
1

上午使用PayPal SDK。一切似乎都没问题,但是我登录成功后出现错误。由于没有日志,因此很难弄清楚。它只是一个消息,说“意外的错误”。 任何帮助是高度赞赏。请参阅下面的代码和屏幕截图。PayPal意外错误

PayPalPayment newPayment = new PayPalPayment(); 
     newPayment.setSubtotal(new BigDecimal("0.99")); 
     newPayment.setCurrencyType("USD"); 
     newPayment.setRecipient("[email protected]"); 
     newPayment.setMerchantName("xxxxx"); 
     newPayment.setPaymentType(PayPal.PAYMENT_TYPE_PERSONAL); 
     newPayment.setCustomID("8873482296"); 
     newPayment.setMemo("Hi! I'm making a memo for a simple payment."); 

     Intent paypalIntent = PayPal.getInstance().checkout(newPayment, MainActivity.this.getApplicationContext()); 
     this.startActivityForResult(paypalIntent, 1); 

enter image description here

回答

1

许多被你使用的,无效的电子邮件,这是未注册为一个有效的PayPal帐户。 所以,如果你在沙盘账户测试,那么你可以使用此帐户:[email protected]

newPayment.setSubtotal(new BigDecimal(1)); 
newPayment.setCurrencyType("USD"); 
newPayment.setRecipient("[email protected]"); 
+0

这实际上是在我的情况下工作:) – 2016-06-14 09:49:28