I am using Stripe for payments. I want to transfer funds to other Stripe users. My account is not in USA.
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
Is there any way, I can charge on my customer on other users behalf? I have to pass the application API keys on every transaction, and all payment go to application account, but I want to transfer an amount to the user and deduct some amount: i.e. application charges to my app account.