【问题标题】:ACH Payment Gateway with Intuit / Quickbooks带有 Intuit / Quickbooks 的 ACH 支付网关
【发布时间】:2023-12-28 23:51:01
【问题描述】:

Intuit 是否提供由 API 提供服务的支付网关(类似于 Stripe 或 Square),我可以使用它在我的网站上接收付款(使用 PHP 构建)?请注意,我特别想用它来接收 ACH 付款。我将使用 Stripe 进行信用卡交易。

如果存在此类功能,请提供指向其文档的链接或说明如何实现它。谢谢!

【问题讨论】:

    标签: php payment-gateway quickbooks intuit


    【解决方案1】:

    文档

    代码

    <?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());
    }
    

    【讨论】:

    • 这会立即从银行帐户中扣除吗?还是需要做一些验证?
    • 它会立即开始扣款。 Intuit 不需要您像 Stripe 那样进行 ACH 验证(Stripe 需要小额存款或 Plaid)。您自己进行一些基本级别的验证以保护自己免受欺诈和/或输入不正确的帐户#s 仍然是一个好主意。
    • 好的。谢谢基思!顺便说一句,QuickBooks PHP DevKit 包令人印象深刻。