支払いには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 キーを渡す必要があり、すべての支払いはアプリケーション アカウントに送られますが、ユーザーに金額を送金し、いくらかの金額を差し引く必要があります。つまり、アプリ アカウントへのアプリケーション料金です。