Module: Simpal::Payment::Authorization
- Defined in:
- lib/simpal/payment/authorization.rb
Overview
Class Method Summary collapse
-
.capture(id, params = {}, headers: {}, client: nil) ⇒ Simpal::PayPalObject
Capture an authorized payment.
-
.reauthorize(id, params = {}, headers: {}, client: nil) ⇒ Simpal::PayPalObject
Reauthorize an authorized payment.
-
.retrieve(id, headers: {}, client: nil) ⇒ Simpal::PayPalObject
Retrieve an authorized payment.
-
.void(id, headers: {}, client: nil) ⇒ Boolean
Void an authorized payment.
Class Method Details
.capture(id, params = {}, headers: {}, client: nil) ⇒ Simpal::PayPalObject
Capture an authorized payment.
30 31 32 33 |
# File 'lib/simpal/payment/authorization.rb', line 30 def self.capture(id, params = {}, headers: {}, client: nil) resource = API::Payments::Authorizations.capture(id, params, headers: headers, client: client) PayPalObject.new(resource) end |
.reauthorize(id, params = {}, headers: {}, client: nil) ⇒ Simpal::PayPalObject
Reauthorize an authorized payment.
43 44 45 46 |
# File 'lib/simpal/payment/authorization.rb', line 43 def self.(id, params = {}, headers: {}, client: nil) resource = API::Payments::Authorizations.(id, params, headers: headers, client: client) PayPalObject.new(resource) end |
.retrieve(id, headers: {}, client: nil) ⇒ Simpal::PayPalObject
Retrieve an authorized payment.
17 18 19 20 |
# File 'lib/simpal/payment/authorization.rb', line 17 def self.retrieve(id, headers: {}, client: nil) resource = API::Payments::Authorizations.retrieve(id, headers: headers, client: client) PayPalObject.new(resource) end |
.void(id, headers: {}, client: nil) ⇒ Boolean
Void an authorized payment.
55 56 57 |
# File 'lib/simpal/payment/authorization.rb', line 55 def self.void(id, headers: {}, client: nil) API::Payments::Authorizations.void(id, headers: headers, client: client) end |