我正在使用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: –
请帮帮我