Sha256: c75286c1f3ae4ae8d858c4002faca086600ef8697b9e5794e7eebfb1970950ca
Contents?: true
Size: 539 Bytes
Versions: 10
Compression:
Stored size: 539 Bytes
Contents
# frozen_string_literal: false require 'cgi' module PayPalCheckoutSdk module Payments # # Shows details for a captured payment, by ID. # class CapturesGetRequest attr_accessor :path, :body, :headers, :verb def initialize(capture_id) @headers = {} @body = nil @verb = "GET" @path = "/v2/payments/captures/{capture_id}?" @path = @path.gsub("{capture_id}", CGI.escape(capture_id.to_s)) @headers["Content-Type"] = "application/json" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems