Skip to content

Commit

Permalink
fix: transition to payments endpoints (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKrieger authored Feb 1, 2024
1 parent 4d1c059 commit 471123b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/checkout/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export async function createPaymentSession(
advertiserId: string,
campaignId: string,
): Promise<string> {
const res = await fetch(buildAdServerEndpoint("/ads/checkout-session"), {
const res = await fetch(buildAdServerEndpoint("/payments/checkout-session"), {
method: "POST",
mode: "cors",
credentials: "include",
Expand All @@ -30,7 +30,7 @@ export async function fetchPaymentSession(
campaignId: string,
sessionId: string | null,
): Promise<void> {
let baseUrl = `/ads/checkout-session?referenceId=${campaignId}`;
let baseUrl = `/payments/checkout-session?referenceId=${campaignId}`;
if (sessionId) {
baseUrl = `${baseUrl}&sessionId=${sessionId}`;
}
Expand Down

0 comments on commit 471123b

Please sign in to comment.