Sha256: 112f749f230bff7388c8a766f364b545a68f463dfa5b664485de9806bb864678
Contents?: true
Size: 773 Bytes
Versions: 3
Compression:
Stored size: 773 Bytes
Contents
module Braintree class PaymentMethodNonceGateway # :nodoc: def initialize(gateway) @gateway = gateway @config = gateway.config end def create(payment_method_token) response = @config.http.post "/payment_methods/#{payment_method_token}/nonces" payment_method_nonce = PaymentMethodNonce._new(@gateway, response.fetch(:payment_method_nonce)) SuccessfulResult.new(:payment_method_nonce => payment_method_nonce) end def find(payment_method_nonce) response = @config.http.get "/payment_method_nonces/#{payment_method_nonce}" payment_method_nonce = PaymentMethodNonce._new(@gateway, response.fetch(:payment_method_nonce)) SuccessfulResult.new(:payment_method_nonce => payment_method_nonce) end end end
Version data entries
3 entries across 3 versions & 1 rubygems