Module: Simpal::Payment::Capture
- Defined in:
- lib/simpal/payment/capture.rb
Overview
Class Method Summary collapse
-
.refund(id, params = {}, headers: {}, client: nil) ⇒ Simpal::PayPalObject
Refund a captured payment.
-
.retrieve(id, headers: {}, client: nil) ⇒ Simpal::PayPalObject
Retrieve an captured payment.
Class Method Details
.refund(id, params = {}, headers: {}, client: nil) ⇒ Simpal::PayPalObject
Refund a captured payment.
30 31 32 33 |
# File 'lib/simpal/payment/capture.rb', line 30 def self.refund(id, params = {}, headers: {}, client: nil) resource = API::Payments::Captures.refund(id, params, headers: headers, client: client) PayPalObject.new(resource) end |
.retrieve(id, headers: {}, client: nil) ⇒ Simpal::PayPalObject
Retrieve an captured payment.
17 18 19 20 |
# File 'lib/simpal/payment/capture.rb', line 17 def self.retrieve(id, headers: {}, client: nil) resource = API::Payments::Captures.retrieve(id, headers: headers, client: client) PayPalObject.new(resource) end |