Skip to content

Commit ae982e4

Browse files
authored
Merge pull request #1482 from ChrisSchofieldCheckatrade/main
fix: fix possdk base URL for /possdk/v68
2 parents eaf2e82 + 0eb7926 commit ae982e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/service.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ class Service {
5050
{
5151
throw new Error("Please provide your unique live url prefix on the setEnvironment() call on the Client.");
5252
}
53+
54+
if (url.includes('/possdk/v68')) {
55+
return url.replace("https://checkout-test.adyen.com/",
56+
`https://${this.client.liveEndpointUrlPrefix}-checkout-live.adyenpayments.com/`);
57+
}
58+
5359
return url.replace("https://checkout-test.adyen.com/",
5460
`https://${this.client.liveEndpointUrlPrefix}-checkout-live.adyenpayments.com/checkout/`);
5561
}

0 commit comments

Comments
 (0)