【发布时间】:2023-12-28 23:51:01
【问题描述】:
Intuit 是否提供由 API 提供服务的支付网关(类似于 Stripe 或 Square),我可以使用它在我的网站上接收付款(使用 PHP 构建)?请注意,我特别想用它来接收 ACH 付款。我将使用 Stripe 进行信用卡交易。
如果存在此类功能,请提供指向其文档的链接或说明如何实现它。谢谢!
【问题讨论】:
标签: php payment-gateway quickbooks intuit
Intuit 是否提供由 API 提供服务的支付网关(类似于 Stripe 或 Square),我可以使用它在我的网站上接收付款(使用 PHP 构建)?请注意,我特别想用它来接收 ACH 付款。我将使用 Stripe 进行信用卡交易。
如果存在此类功能,请提供指向其文档的链接或说明如何实现它。谢谢!
【问题讨论】:
标签: php payment-gateway quickbooks intuit
<?php
$name = 'Jane Doe';
$number = '856666';
$routing = '072403004';
$type = QuickBooks_Payments_BankAccount::TYPE_PERSONAL_CHECKING;
$phone = '860-634-1234';
$amount = 50;
$currency = 'USD';
$Payments = new QuickBooks_Payments($oauth_consumer_key, $oauth_consumer_secret, $sandbox);
$BankAccount = new QuickBooks_Payments_BankAccount($name, $number, $routing, $type, $phone);
if ($Transaction = $Payments->debit($Context, $BankAccount, $amount, $currency))
{
//print_r($Transaction);
print_r($Transaction);
}
else
{
print('Error while debiting a bank account: ' . $Payments->lastError());
}
【讨论】: