在使用stripe https://stripe.com/docs/connect/payouts从我们的平台向帐户进行银行转账/付款之后,我得到了下一个错误。
NameError (uninitialized constant Stripe::Payout)我使用的是gem 'rails','~> 5.0.1‘gem 'stripe','~> 2.0’
控制器中的代码是
transfer = Stripe::Payout.create(
{
:amount => ((invoice.total - invoice.fee)*100).to_i,
:currency => "usd"
},
{:stripe_account => @event.admin.stripe_user_id}
)发布于 2017-04-12 00:36:29
为了使用支出,您需要升级到Stripe库的至少2.2.0版。
https://stackoverflow.com/questions/43358083
复制相似问题