Skip to content

Commit d517ccb

Browse files
committed
Adds /v1 prefix to create_onramp_session and checkout (no other changes to these APIs)
1 parent df94fed commit d517ccb

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

example/server/onrampBackend.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ export class OnrampBackend {
326326
};
327327

328328
return this.makeRequest<OnrampSessionResponse>(
329-
'/create_onramp_session',
329+
'/v1/create_onramp_session',
330330
requestBody,
331331
{
332332
useTimeout: true,
@@ -352,14 +352,18 @@ export class OnrampBackend {
352352
cos_id: cosId,
353353
};
354354

355-
return this.makeRequest<OnrampSessionResponse>('/checkout', requestBody, {
356-
useTimeout: true,
357-
authToken,
358-
transformResponse: (data) => ({
359-
id: data.id,
360-
client_secret: data.client_secret,
361-
}),
362-
});
355+
return this.makeRequest<OnrampSessionResponse>(
356+
'/v1/checkout',
357+
requestBody,
358+
{
359+
useTimeout: true,
360+
authToken,
361+
transformResponse: (data) => ({
362+
id: data.id,
363+
client_secret: data.client_secret,
364+
}),
365+
}
366+
);
363367
}
364368
}
365369

0 commit comments

Comments
 (0)