Sha256: a0111843a5f1f4d8eaa7408f6123bf702957c3dd1a50304f8906ffaf41bd255b

Contents?: true

Size: 742 Bytes

Versions: 1

Compression:

Stored size: 742 Bytes

Contents

require 'test_helper'
require 'adyen/rest/client'

class RESTClientTest < Minitest::Test
  def test_endpoint_dev
    client =  Adyen::REST::Client.new(
        :test,
        'login',
        'password'
    )

    assert_equal client.http.address, 'pal-test.adyen.com'
  end

  def test_endpoint_live
    client =  Adyen::REST::Client.new(
        :live,
        'login',
        'password'
    )

    assert_equal client.http.address, 'pal-live.adyen.com'
  end

  def test_endpoint_live_with_merchant
    merchant = 'merchantEndpoint'

    client =  Adyen::REST::Client.new(
        :live,
        'login',
        'password',
        merchant
    )

    assert_equal client.http.address, "#{merchant}.pal-live.adyenpayments.com"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adyen-2.4.0 test/unit/rest/client_test.rb