Sha256: c422c8090e24bfdc6e09bbaf559cad18b600db591498ad5dbf587f022a7dafb6

Contents?: true

Size: 285 Bytes

Versions: 2

Compression:

Stored size: 285 Bytes

Contents

require 'active_support/core_ext/hash/keys'

module FakeBraintree
  class PaymentMethod
    def self.tokenize_card(attributes)
      token = (Time.now.to_f * 1000).round.to_s
      FakeBraintree.registry.payment_methods[token] = attributes.stringify_keys
      token
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fake_braintree-0.8.0 lib/fake_braintree/payment_method.rb
fake_braintree-0.7.0 lib/fake_braintree/payment_method.rb