Sha256: 9ca2ba72c9ae8a842f2cc5bc9113d425d5175dffa1f63c71576f5eb09b7f4c69

Contents?: true

Size: 681 Bytes

Versions: 3

Compression:

Stored size: 681 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, options = {})
      Configuration.gateway.payment_method.grant(token, options)
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
braintree-2.69.1 lib/braintree/payment_method.rb
braintree-2.69.0 lib/braintree/payment_method.rb
braintree-2.68.2 lib/braintree/payment_method.rb