Skip to content

Commit

Permalink
Merge pull request #62 from zhutik/fix_endpoint_url
Browse files Browse the repository at this point in the history
Update checkout API url to adyenpayments.com
  • Loading branch information
zhutik authored Jun 25, 2018
2 parents dc4cdac + 083e068 commit 11cc777
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 11cc777

Please sign in to comment.