Facades: payout
Overview
Allows a merchant to create multiple payout requests with one request..
Example
Payout payout1 = new Payout();
payout1.setAmount(10.00);
payout1.setCurrency(Currency.USD);
payout1.setLedgerCurrency(Currency.USD);
payout1.setReference("payout_1");
payout1.setNotificationEmail("[email protected]");
payout1.setNotificationUrl("https://somenotiticationURL.com");
payout1.setEmail("[email protected]")
Payout payout2 = new Payout();
payout2.setAmount(10.00);
payout2.setCurrency(Currency.USD);
payout2.setLedgerCurrency(Currency.USD);
payout2.setReference("payout_2");
payout2.setNotificationEmail("[email protected]");
payout2.setNotificationUrl("https://somenotiticationURL.com");
payout2.setEmail("[email protected]")
Collection<Payout> payouts = Arrays.asList(payout1, payout2);
PayoutGroup submitPayoutGroup = bitpay.submitPayouts(payouts);