Sha256: 73d5b3d8b98d2d54654eb5adb91ff5f40b46deca800431e3b39ef8a13bc56845
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
module Braintree class PayerAuthentication include BaseModule # :nodoc: attr_reader :id, :post_params, :post_url def self.authenticate(payer_authentication_id, response_payload) Configuration.gateway.payer_authentication.authenticate( payer_authentication_id, response_payload ) end def initialize(gateway, attributes) # :nodoc: @gateway = gateway set_instance_variables_from_hash(attributes) @post_params = (@post_params || []).map do |params| OpenStruct.new(:name => params[:name], :value => params[:value]) end end class << self protected :new end def self._new(*args) # :nodoc: self.new *args end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
braintree-2.10.3 | lib/braintree/payer_authentication.rb |
braintree-2.10.2 | lib/braintree/payer_authentication.rb |