首页 文章

代表用户进行条纹付款

提问于
浏览
2

我使用Stripe付款 . 我想将资金转移给其他Stripe用户 . 我的帐户不在美国 .

begin
      Stripe::Charge.create(
        :amount => amount_in_cents(amount),
        :currency => DEFAULT_CURRENCY,
        :customer => client.payment_token,
        :description => session_or_purchase.payment_description
      )
    rescue Stripe::CardError, Stripe::InvalidRequestError, Stripe::APIConnectionError, Stripe::StripeError  => e
      body = e.json_body
      err  = body[:error]
      return err
    rescue => e
      error = {type: 'Unknown', message: 'Some thing else happened ', param: ''}
    end

有什么办法,我可以代表其他用户向我的客户收费吗?我必须在每笔交易上传递应用程序API密钥,并且所有付款都转到应用程序帐户,但我想将金额转移给用户并扣除一些金额:即应用程序费用到我的应用程序帐户 .

1 回答

  • 2

    Stripe为您提供了一种使用条纹连接的方法 . 检查this以获取参考 .

相关问题