Sha256: af512809e2902ae62d08a91506f796f8199c7ccc549fe544ea3e2372fdbbb1cf

Contents?: true

Size: 597 Bytes

Versions: 2

Compression:

Stored size: 597 Bytes

Contents

module Braintree
  class PaymentMethod
    include BaseModule

    def self.create(attributes)
      Configuration.gateway.payment_method.create(attributes)
    end

    def self.find(token)
      Configuration.gateway.payment_method.find(token)
    end

    def self.update(token, attributes)
      Configuration.gateway.payment_method.update(token, attributes)
    end

    def self.delete(token)
      Configuration.gateway.payment_method.delete(token)
    end

    def self.grant(token, allow_vaulting)
      Configuration.gateway.payment_method.grant(token, allow_vaulting)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
braintree-2.55.0 lib/braintree/payment_method.rb
braintree-2.54.0 lib/braintree/payment_method.rb