From 083e068979353681e415f73e09ab0c52470c15c3 Mon Sep 17 00:00:00 2001 From: Igor Zhutaiev Date: Mon, 25 Jun 2018 09:46:38 +0200 Subject: [PATCH] Update checkout API url to adyenpayments.com --- environment.go | 2 +- environment_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/environment.go b/environment.go index d58417d..846c2b2 100644 --- a/environment.go +++ b/environment.go @@ -31,7 +31,7 @@ var Production = Environment{ apiURL: "https://%s-%s-pal-live.adyenpayments.com/pal/servlet", clientURL: "https://live.adyen.com/hpp/cse/js/", hppURL: "https://live.adyen.com/hpp/", - checkoutURL: "https://%s-%s-checkout-live.adyen.com/services/PaymentSetupAndVerification", + checkoutURL: "https://%s-%s-checkout-live.adyenpayments.com/services/PaymentSetupAndVerification", } // TestEnvironment returns test environment configuration. diff --git a/environment_test.go b/environment_test.go index a8dcae6..ca07780 100644 --- a/environment_test.go +++ b/environment_test.go @@ -113,9 +113,9 @@ func TestCheckoutURLEnvironmentProduction(t *testing.T) { if err != nil { t.Fatalf("error creating production environment: %v", err) } - + act := env.CheckoutURL("service", "version") - exp := "https://5409c4fd1cc98a4e-AcmeAccount123-checkout-live.adyen.com/services/PaymentSetupAndVerification/version/service" - + exp := "https://5409c4fd1cc98a4e-AcmeAccount123-checkout-live.adyenpayments.com/services/PaymentSetupAndVerification/version/service" + equals(t, exp, act) }