[英]Stripe Connect API (Ruby) with a “Managed Account”: delete bank account, add multiple bank accounts
[英]How do i add a bank account associated to stripe customer
我正在使用Rails構建紅寶石應用程序,商人可以在其中提供他的銀行帳戶信息,並且應該每月進行付款。
我想使用條紋實現這一目標。 如何添加/創建與條紋客戶關聯的銀行帳戶?
首先,我們需要找到條紋客戶,然后我們可以在該客戶帳戶中添加一個新的銀行帳戶。 您可以參考此代碼以獲取更多詳細信息
# Add bank account data on stripe for patient users
def add_bank_account
customer = Stripe::Customer.retrieve(stripe_customer_id)
customer.sources.create({:source => {:object => "bank_account", :account_number => bank_account_number, :country => country, :currency => "USD", :account_holder_name => account_holder_name, :account_holder_type => account_holder_type, :routing_number => routing_number }})
end
account_holder_type
可以是公司或個人
為了開始付款過程,您需要驗證新的銀行帳戶
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.