Module: EPayCo::Client::Charge
- Included in:
- EPayCo::Client
- Defined in:
- lib/epayco/client/charge.rb
Overview
Defines methods related to Charges
Instance Method Summary collapse
-
#charge_create(options = {}) ⇒ Hashie::Mash
Creates a new charge.
Instance Method Details
#charge_create(options = {}) ⇒ Hashie::Mash
Creates a new charge
29 30 31 32 33 |
# File 'lib/epayco/client/charge.rb', line 29 def charge_create(={}) path = "/payment/v1/charge/create" = { return_object: 'data' } post(path, .merge(public_key: public_key, test: test_mode), ) end |