Created
November 19, 2012 15:51
-
-
Save SeraphimSerapis/4111399 to your computer and use it in GitHub Desktop.
Initializes a parallel payment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void initParallelPayment() { | |
PayPalReceiverDetails receiver0 = new PayPalReceiverDetails(); | |
PayPalReceiverDetails receiver1 = new PayPalReceiverDetails(); | |
// Setup additional information | |
PayPalAdvancedPayment payment = new PayPalAdvancedPayment(); | |
payment.setCurrencyType("EUR"); | |
payment.getReceivers().add(receiver0); | |
payment.getReceivers().add(receiver1); | |
Intent paypalIntent = PayPal.getInstance().checkout(payment, context); | |
activity.startActivityForResult(paypalIntent, REQUEST_PAY); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment