File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636import { makeAutoObservable , runInAction } from "mobx" ;
3737import 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
You can’t perform that action at this time.
0 commit comments