Sha256: b5bc1426877150bf078e0138b92b1e83da5fa75b9557d3cfb41fdcb04eb00ec5

Contents?: true

Size: 690 Bytes

Versions: 15

Compression:

Stored size: 690 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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
braintree-2.68.1 lib/braintree/payment_method.rb
braintree-2.68.0 lib/braintree/payment_method.rb
braintree-2.67.0 lib/braintree/payment_method.rb
braintree-2.66.0 lib/braintree/payment_method.rb
braintree-2.65.0 lib/braintree/payment_method.rb
braintree-2.64.0 lib/braintree/payment_method.rb
braintree-2.63.0 lib/braintree/payment_method.rb
braintree-2.62.0 lib/braintree/payment_method.rb
braintree-2.61.1 lib/braintree/payment_method.rb
braintree-2.61.0 lib/braintree/payment_method.rb
braintree-2.60.0 lib/braintree/payment_method.rb
braintree-2.59.0 lib/braintree/payment_method.rb
braintree-2.58.0 lib/braintree/payment_method.rb
braintree-2.57.0 lib/braintree/payment_method.rb
braintree-2.56.0 lib/braintree/payment_method.rb