代表用户条纹支付
Stripe Payment on user behalf
我正在使用 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 键,所有付款都转到应用程序帐户,但我想向用户转账并扣除一些金额:即应用程序费用到我的应用程序帐户。
Stripe 为您提供了一种使用 Stripe 连接的方法。检查 this 作为参考。
我正在使用 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 键,所有付款都转到应用程序帐户,但我想向用户转账并扣除一些金额:即应用程序费用到我的应用程序帐户。
Stripe 为您提供了一种使用 Stripe 连接的方法。检查 this 作为参考。