Module: PaypalAPI::AuthorizedPayments::APIs
- Included in:
- PaypalAPI::AuthorizedPayments, PaypalAPI::AuthorizedPayments
- Defined in:
- lib/paypal-api/api_collections/authorized_payments.rb
Overview
Common methods for PayplaAPI::AuthorizedPayments class and client.authorized_payments instance
Instance Method Summary collapse
-
#capture(authorization_id, query: nil, body: nil, headers: nil) ⇒ Response
Capture authorized payment.
-
#reauthorize(authorization_id, query: nil, body: nil, headers: nil) ⇒ Response
Reauthorize authorized payment.
-
#show(authorization_id, query: nil, body: nil, headers: nil) ⇒ Response
Show details for authorized payment.
-
#void(authorization_id, query: nil, body: nil, headers: nil) ⇒ Response
Void authorized payment.
Instance Method Details
#capture(authorization_id, query: nil, body: nil, headers: nil) ⇒ Response
Capture authorized payment
40 41 42 |
# File 'lib/paypal-api/api_collections/authorized_payments.rb', line 40 def capture(, query: nil, body: nil, headers: nil) client.post("/v2/payments/authorizations/#{encode()}/capture", query: query, body: body, headers: headers) end |
#reauthorize(authorization_id, query: nil, body: nil, headers: nil) ⇒ Response
Reauthorize authorized payment
51 52 53 |
# File 'lib/paypal-api/api_collections/authorized_payments.rb', line 51 def (, query: nil, body: nil, headers: nil) client.post("/v2/payments/authorizations/#{encode()}/reauthorize", query: query, body: body, headers: headers) end |
#show(authorization_id, query: nil, body: nil, headers: nil) ⇒ Response
Show details for authorized payment
28 29 30 |
# File 'lib/paypal-api/api_collections/authorized_payments.rb', line 28 def show(, query: nil, body: nil, headers: nil) client.get("/v2/payments/authorizations/#{encode()}", query: query, body: body, headers: headers) end |
#void(authorization_id, query: nil, body: nil, headers: nil) ⇒ Response
Void authorized payment
62 63 64 |
# File 'lib/paypal-api/api_collections/authorized_payments.rb', line 62 def void(, query: nil, body: nil, headers: nil) client.post("/v2/payments/authorizations/#{encode()}/void", query: query, body: body, headers: headers) end |