[英]NameError (uninitialized constant Stripe::Payout)
Following the stripe doc https://stripe.com/docs/connect/payouts to make bank transfers/payouts to accounts from our platform, I got the next error 按照条形文档https://stripe.com/docs/connect/payouts从我们的平台向帐户进行银行转帐/付款后,出现了下一个错误
NameError (uninitialized constant Stripe::Payout)
I'm using gem 'rails', '~> 5.0.1' gem 'stripe', '~> 2.0' 我正在使用gem'rails','〜> 5.0.1'gem'stripe','〜> 2.0'
And the code with in the controller is 控制器中的代码是
transfer = Stripe::Payout.create(
{
:amount => ((invoice.total - invoice.fee)*100).to_i,
:currency => "usd"
},
{:stripe_account => @event.admin.stripe_user_id}
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.