Sha256: a812344c11b5eb6d77bb559dbb577d8c087b5d3b41e237e0c9ca10738ebcca2a
Contents?: true
Size: 660 Bytes
Versions: 10
Compression:
Stored size: 660 Bytes
Contents
# frozen_string_literal: false require 'cgi' module PayPalCheckoutSdk module Payments # # Voids, or cancels, an authorized payment, by ID. You cannot # void an authorized payment that has been fully captured. # class AuthorizationsVoidRequest attr_accessor :path, :body, :headers, :verb def initialize(authorization_id) @headers = {} @body = nil @verb = "POST" @path = "/v2/payments/authorizations/{authorization_id}/void?" @path = @path.gsub("{authorization_id}", CGI.escape(authorization_id.to_s)) @headers["Content-Type"] = "application/json" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems