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('merchant@example.com');
$payout1->setNotificationURL('https://example.com/notifications');
$payout1->setEmail('recipient1@example.com');

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

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