Skip to content

Commit 06417b1

Browse files
committed
Avoid redundant validation
1 parent 0bfe848 commit 06417b1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/service.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,11 @@ class Service {
5555
}
5656

5757
if (url.includes("pal-")) {
58-
if (this.client.config.liveEndpointUrlPrefix === "")
59-
{
60-
throw new Error("Please provide your unique live url prefix on the setEnvironment() call on the Client.");
61-
}
6258
return url.replace("https://pal-test.adyen.com/pal/servlet/",
6359
`https://${this.client.config.liveEndpointUrlPrefix}-pal-live.adyenpayments.com/pal/servlet/`);
6460
}
6561

6662
if (url.includes("checkout-")) {
67-
if (this.client.config.liveEndpointUrlPrefix === "")
68-
{
69-
throw new Error("Please provide your unique live url prefix on the setEnvironment() call on the Client.");
70-
}
71-
7263
if (url.includes("/possdk/v68")) {
7364
return url.replace("https://checkout-test.adyen.com/",
7465
`https://${this.client.config.liveEndpointUrlPrefix}-checkout-live.adyenpayments.com/`);

0 commit comments

Comments
 (0)