I am trying to do mass payment using https://github.com/Dwolla/dwolla-swagger-php.
But working with single item data only.
Here, I have added my demo code for,
$massPayment = $massPaymentsApi->create([
'_links' =>
[
'source' =>
[
'href' => 'funding source url',
],
],
'items' =>
[
[
'_links' =>
[
'destination' =>
[
'href' => 'customer destination url',
],
],
'amount' =>
[
'currency' => 'USD',
'value' => '1.10',
]
],
[
'_links' =>
[
'destination' =>
[
'href' => 'customer destination url',
],
],
'amount' =>
[
'currency' => 'USD',
'value' => '2.20',
]
],
]
]);
Error :
Whoops, looks like something went wrong.
ApiException in ApiClient.php line 322:[400] Error connecting to the API (https://api-sandbox.dwolla.com/mass-payments)
Please let me know the actual issue in script.
Thanks
