module Simpal::Payment::Capture
Public Class Methods
Refund
a captured payment.
@param id [String] The ID of a captured payment. @param params [Hash] The parameters for the refund request. @param headers [Hash] The custom headers to add to the request. @param client [Simpal::Client] The API
client to make the request with. @return [Simpal::PayPalObject] An object representing the refunded payment.
# File lib/simpal/payment/capture.rb, line 30 def self.refund(id, params = {}, headers: {}, client: nil) resource = API::Payments::Captures.capture(id, params, headers: headers, client: client) PayPalObject.new(resource) end
Retrieve an captured payment.
@param id [String] The ID of a captured payment. @param headers [Hash] The custom headers to add to the request. @param client [Simpal::Client] The API
client to make the request with. @return [Simpal::PayPalObject] An object representing the captured payment.
# 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