Android and Paypal API integration

前端 未结 1 1422
攒了一身酷
攒了一身酷 2021-02-14 11:38

I\'m trying to integrate the Paypal API to make my app donation based. I have two questions:

  1. I can see the button, I click it but it doesn\'t do a

1条回答
  •  抹茶落季
    2021-02-14 12:04

    In onclick:

    pp=PayPal.getInstance();
    
    // Should do like this to start paypal activity
    PayPalPayment newPayment = new PayPalPayment();
    newPayment.setCurrencyType("USD");
    
    Intent paypalIntent=pp.checkout(newPayment, test.this);
    startActivityForResult(paypalIntent, 1);
    

    0 讨论(0)
提交回复
热议问题