2
继条纹文档https://stripe.com/docs/connect/payouts使银行转账/支出,从我们的平台账户,我得到了一个错误NameError(未初始化不断条纹::奖金)
NameError (uninitialized constant Stripe::Payout)
我使用 宝石“轨道” , '〜> 5.0.1' 宝石 '条纹', '〜> 2.0'
并与在控制器中的代码是
transfer = Stripe::Payout.create(
{
:amount => ((invoice.total - invoice.fee)*100).to_i,
:currency => "usd"
},
{:stripe_account => @event.admin.stripe_user_id}
)