diff --git a/src/checkout/lib/index.ts b/src/checkout/lib/index.ts index 9c0235bb..c1c2fd48 100644 --- a/src/checkout/lib/index.ts +++ b/src/checkout/lib/index.ts @@ -4,7 +4,7 @@ export async function createPaymentSession( advertiserId: string, campaignId: string, ): Promise { - const res = await fetch(buildAdServerEndpoint("/ads/checkout-session"), { + const res = await fetch(buildAdServerEndpoint("/payments/checkout-session"), { method: "POST", mode: "cors", credentials: "include", @@ -30,7 +30,7 @@ export async function fetchPaymentSession( campaignId: string, sessionId: string | null, ): Promise { - let baseUrl = `/ads/checkout-session?referenceId=${campaignId}`; + let baseUrl = `/payments/checkout-session?referenceId=${campaignId}`; if (sessionId) { baseUrl = `${baseUrl}&sessionId=${sessionId}`; }