Sha256: 6c1d3fd8328b7d19e104ecfde0a5ccc3e8a2917afdc8375cb5a7bea8920a66e6

Contents?: true

Size: 704 Bytes

Versions: 15

Compression:

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

15 entries across 15 versions & 1 rubygems

Version Path
braintree-2.83.0 lib/braintree/payment_method.rb
braintree-2.82.0 lib/braintree/payment_method.rb
braintree-2.81.0 lib/braintree/payment_method.rb
braintree-2.80.1 lib/braintree/payment_method.rb
braintree-2.80.0 lib/braintree/payment_method.rb
braintree-2.79.0 lib/braintree/payment_method.rb
braintree-2.78.0 lib/braintree/payment_method.rb
braintree-2.77.0 lib/braintree/payment_method.rb
braintree-2.76.0 lib/braintree/payment_method.rb
braintree-2.75.0 lib/braintree/payment_method.rb
braintree-2.74.0 lib/braintree/payment_method.rb
braintree-2.73.0 lib/braintree/payment_method.rb
braintree-2.72.0 lib/braintree/payment_method.rb
braintree-2.71.0 lib/braintree/payment_method.rb
braintree-2.70.0 lib/braintree/payment_method.rb