Sha256: 861358773378f959d991b7aa7ff73effe159c626b322e26c8274ae97b74d83c9

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

module FakeBraintree
  class ClientToken
    def self.generate(options = {})
      root_url = "http://localhost:#{ENV['GATEWAY_PORT']}"
      unencoded_client_token = {
        clientApiUrl: "#{root_url}/merchants/merchant_id/client_api",
        authUrl: 'http://auth.venmo.dev:9292',
        configUrl: "#{root_url}/config",
        assetsUrl: root_url,
        authorizationFingerprint: options['customer_id']
      }.to_json
      Base64.strict_encode64(unencoded_client_token)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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