First, I need to understand where ACH is currently used in the code. Looking at the provided code snippets:
-
StripeCustomer Adapter: The
default_payment_method
method inhubstaff_billing/lib/hubstaff_billing/adapters/stripe_customer.rb
checks if the payment method starts with 'ba_' or 'src_', which are legacy Source IDs. This indicates they're using the old Sources API for ACH. -
Organizations Controller: The
show_billing
action retrieves the default payment method, which might be a Stripe::Source for ACH. -
Billing View (Slim Template): The view has conditional rendering for ACH status, like 'Pending' or 'Verified', and buttons for verifying deposits.