我正在创建一个脚本,用于使用 dwolla ACH API 将资金从一个银行账户转移到另一家银行。当我尝试将资金从管理员资金来源转移到用户帐户时,我的代码运行良好,但是当我将资金用户发送给管理员时出现问题。看看下面的代码: -
$transfersApi = new DwollaSwagger\TransfersApi($apiClient);
$new_xfer = $transfersApi->create(array (
'_links' =>
array (
'destination' =>
array (
'href' => 'https://api.dwolla.com/customers/789a5d4c-2b0e-4c1c-80cf-5b3ccfccc0e3',
),
'source' =>
array (
'href' => 'https://api.dwolla.com/funding-sources/a7afee62-e058-4c69-b417-d0187a3a053f',
),
),
'amount' =>
array (
'currency' => 'USD',
'value' => '5.50',
),
'metadata' =>
array (
'foo' => 'bar',
'baz' => 'boo',
),
));
错误:
Fatal error: Uncaught exception 'DwollaSwagger\ApiException' with message '[400] Error connecting to the API (api-uat.dwolla.com/transfers)'; in /var/www/html/dwolla/dwolla-swagger-php-master/dwolla-swagger-php-master/vendor/dwolla/dwollaswagger/lib/ApiClient.php:308 Stack trace: –
请帮我