Skip to content

Commit ca7ccbc

Browse files
Billing: Passed successUrl to checkoutSetupUrl via axios params.
1 parent a147231 commit ca7ccbc

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

billing/store/PaymentStore.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import { makeAutoObservable, runInAction } from "mobx";
3737
import type {
3838
PaymentApi,
39-
PaymentApiGetCheckoutSetupUrlRequest,
4039
PaymentUrlRequestDto,
4140
ProfilesApi,
4241
PortalQuotaApi,
@@ -736,15 +735,14 @@ class PaymentStore {
736735
window.location.origin,
737736
"/portal-settings/payments/wallet?complete=true&type=wallet",
738737
);
739-
740738
try {
741739
const res = await this.paymentApi.getCheckoutSetupUrl(
742-
{
743-
backUrl,
744-
successUrl,
745-
} as PaymentApiGetCheckoutSetupUrlRequest & { successUrl: string },
740+
{ backUrl },
746741
{
747742
signal: abortController.signal,
743+
// TEMP: SDK schema lacks `successUrl`; passing it via axios `params`
744+
// until the SDK is regenerated to include it in the request type.
745+
params: { successUrl },
748746
},
749747
);
750748

0 commit comments

Comments
 (0)