我正在从Rails上的Ruby调用Stripe Payout创建API,但是我从Stripe遇到错误。我的目的是将特定金额记入客户信用卡。
代码是:
transferForRenter = Stripe::Payout.create(:amount => 100, :currency => "usd", :destination => payment_customer_id)
我从Stripe得到的答复是:
{ “错误”:{ “ code”:“ resource_missing”, “ doc_url”:“ https://stripe.com/docs/error-codes/resource-missing”, “ message”:“没有这样的外部帐户:cus_XXXyoOyVJRUXXX”, “ param”:“目的地”, “ type”:“ invalid_request_error” }