Method: Pay::Stripe::Merchant#transfer
- Defined in:
- lib/pay/stripe/merchant.rb
#transfer(amount:, currency: "usd", **options) ⇒ Object
Transfer money from the platform to this connected account stripe.com/docs/connect/charges-transfers#transfer-availability
55 56 57 58 59 60 61 62 63 |
# File 'lib/pay/stripe/merchant.rb', line 55 def transfer(amount:, currency: "usd", **) ::Stripe::Transfer.create({ amount: amount, currency: currency, destination: processor_id }.merge()) rescue ::Stripe::StripeError => e raise Pay::Stripe::Error, e end |