Sha256: 0f57a0cedfe812612e65a799becbefb2e3fbce9023541aabd32ca8b7b7372342
Contents?: true
Size: 857 Bytes
Versions: 19
Compression:
Stored size: 857 Bytes
Contents
module Braintree class PaymentMethodNonce include BaseModule # :nodoc: def self.create(payment_method_token) Configuration.gateway.payment_method_nonce.create(payment_method_token) end def self.find(payment_method_nonce) Configuration.gateway.payment_method_nonce.find(payment_method_nonce) end attr_reader :nonce, :three_d_secure_info, :type def initialize(gateway, attributes) # :nodoc: @gateway = gateway @nonce = attributes.fetch(:nonce) @type = attributes.fetch(:type) @three_d_secure_info = ThreeDSecureInfo.new(attributes[:three_d_secure_info]) if attributes[:three_d_secure_info] end def to_s # :nodoc: nonce end class << self protected :new end def self._new(gateway, attributes) # :nodoc: new(gateway, attributes) end end end
Version data entries
19 entries across 19 versions & 1 rubygems