class Io::Flow::V0::Models::ActionUseSdkPaypal
Use the Paypal Checkout Javascript SDK to render the Paypal Button and the Paypal experience. The result of this operation will be Paypal identifiers that will be used to update the payment request with a ‘payment_method_data` of type `authorize_paypal_payer`. developer.paypal.com/docs/archive/checkout/integrate
Attributes
expires_at[R]
payment_id[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::Action::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 29380 def initialize(incoming={}) super(:type => Action::Types::ACTION_USE_SDK_PAYPAL) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:payment_id], 'ActionUseSdkPaypal') @expires_at = (x = opts.delete(:expires_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('expires_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) @payment_id = HttpClient::Preconditions.assert_class('payment_id', opts.delete(:payment_id), String) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 29392 def copy(incoming={}) ActionUseSdkPaypal.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
subtype_to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 29396 def subtype_to_hash { :expires_at => expires_at, :payment_id => payment_id } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 29388 def to_json JSON.dump(to_hash) end