Sha256: bb0a032e82c65645fcb815c984fad9d4d235ba45e9d5638fe3c5143946d0db7e
Contents?: true
Size: 814 Bytes
Versions: 10
Compression:
Stored size: 814 Bytes
Contents
# frozen_string_literal: false require 'cgi' module PayPalCheckoutSdk module Orders # # Validates a payment method and checks it for contingencies. # class OrdersValidateRequest attr_accessor :path, :body, :headers, :verb def initialize(order_id) @headers = {} @body = nil @verb = "POST" @path = "/v2/checkout/orders/{order_id}/validate-payment-method?" @path = @path.gsub("{order_id}", CGI.escape(order_id.to_s)) @headers["Content-Type"] = "application/json" end def pay_pal_client_metadata_id(pay_pal_client_metadata_id) @headers["PayPal-Client-Metadata-Id"] = pay_pal_client_metadata_id end def request_body(order_action_request) @body = order_action_request end end end end
Version data entries
10 entries across 10 versions & 1 rubygems