lukas_o
lukas_o

Reputation: 4256

Hot to turn a Plaid created Stripe ACH bank account token (btok) to payment method?

I was following the Stripe ACH guide (https://stripe.com/docs/ach) to create a bank account token (btok) with Plaid. Now having this btok I am wondering how to use it as a payment method to pay an invoice with it. I did that with credit cards previously without problems and am using them now in connected accounts, so the goal is to achieve the same with ACH. I don't see ACH as a payment method type here: https://stripe.com/docs/api/payment_methods/create

Upvotes: 3

Views: 1058

Answers (2)

habib
habib

Reputation: 1594

just craete stripe customer and craete a bank account using that plaid_stripe_token you have:

(using PHP sdk)

$stripe->customers->createSource(
            $customer->id,
            ['source' => $stripe_token]
        );

These bank accounts are payment methods on Customer objects.

Reference: https://stripe.com/docs/api/customer_bank_accounts

Upvotes: 2

ttmarek
ttmarek

Reputation: 3260

The PaymentMethods API doesn't support ACH payments at this time (but it's coming soon):

https://stripe.com/docs/payments/payment-methods#supported-payment-methods

That being said, you can still use a customer's saved bank account to pay an invoice. The approach would be start by saving the token to the customer, as shown in the first code snippet in this section:

https://stripe.com/docs/ach#manually-collecting-and-verifying-bank-accounts

Once the bank account is saved/attached to a Customer you can create an invoice item on the Customer and invoice the Customer for those invoice items:

https://stripe.com/docs/billing/invoices/sending#one-off

Upvotes: 2

Related Questions