Module: Vindi::Rest::PaymentMethod
- Included in:
- Vindi::Rest
- Defined in:
- lib/vindi/rest/payment_method.rb
Overview
Methods for the Payment Methods API
Instance Method Summary collapse
-
#list_payment_methods(options = {}) ⇒ Array<Hash>
List payment methods for the authenticate user.
-
#payment_method(payment_method_id, options = {}) ⇒ Hash
Get a single payment_method from a merchant.
Instance Method Details
#list_payment_methods(options = {}) ⇒ Array<Hash>
List payment methods for the authenticate user
13 14 15 |
# File 'lib/vindi/rest/payment_method.rb', line 13 def list_payment_methods( = {}) get('payment_methods', )[:payment_methods] end |
#payment_method(payment_method_id, options = {}) ⇒ Hash
Get a single payment_method from a merchant
24 25 26 |
# File 'lib/vindi/rest/payment_method.rb', line 24 def payment_method(payment_method_id, = {}) get("payment_methods/#{payment_method_id}", )[:payment_method] end |