Create Payout Group

Facades: payout

Overview

Allows a merchant to create multiple payout requests with one request..

Example

$payout1 = new Payout();
$payout1->setAmount(10);
$payout1->setCurrency(Currency::USD);
$payout1->setLedgerCurrency(Currency::USD);
$payout1->setReference('payout_1');
$payout1->setNotificationEmail('[email protected]');
$payout1->setNotificationURL('https://example.com/notifications');
$payout1->setEmail('[email protected]');

$payout2 = new Payout();
$payout2->setAmount(10);
$payout2->setCurrency(Currency::USD);
$payout2->setLedgerCurrency(Currency::USD);
$payout2->setReference('payout_2');
$payout2->setNotificationEmail('[email protected]');
$payout2->setNotificationURL('https://example.com/notifications');
$payout2->setEmail('[email protected]');

$bitpay->createPayoutGroup([$payout1, $payout2]);