Skip to content

Instantly share code, notes, and snippets.

@SeraphimSerapis
Created November 19, 2012 15:51
Show Gist options
  • Save SeraphimSerapis/4111399 to your computer and use it in GitHub Desktop.
Save SeraphimSerapis/4111399 to your computer and use it in GitHub Desktop.
Initializes a parallel payment
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