#daugaard47-bank-account
1 messages · Page 1 of 1 (latest)
what are you trying to do with that bank account?
and do you get an error when you try the request you sketched out here?
Update a current subscription with my bank account
Only errors I get
[2021-09-08 15:24:04] local.INFO: New Payment Method Added
[2021-09-08 15:24:04] local.ERROR: No such PaymentMethod: 'ba_xxxxxxxxxxxxxxxxxMzZ'
[2021-09-08 15:24:04] local.ERROR: (Status 400) (Request req_MBv8RQ2L2RFyjF) No such PaymentMethod: 'ba_xxxxxxxxxxxxxxxxxMzZ'
It says there is No such PaymentMethod, but there is in my customer
right, so instead you need to create a source for the customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
bank accounts / ACH currently use the Sources API
the guid shows this being set up when creating the customer, but the above is how you'd do it afterward:
https://stripe.com/docs/ach#manually-collecting-and-verifying-bank-accounts
Stripe supports accepting ACH payments—direct from bank accounts—alongside credit cards. ACH is currently supported only for Stripe businesses based in the U.S. We'd love to hear about your use case, though!
Okay thanks this is helpfull
Hey sorry, The problem here is I don't have the token. I'm not actually Creating the bank account
I need to switch the payment method to the bank account
This won't work:
$stripe->customers->createSource(
'cus_JQcUL2RC0miIqT',
['source' => 'btok_1JXWkl4xg7hY5EX0riGSRH8L']
);
I need to Update the Subscription default_payment_method
Oh is the bank account already a customer source then?
Yes
in which case you need to set it to the subscription default_source: https://stripe.com/docs/api/subscriptions/update#update_subscription-default_source
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.