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) }