File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,8 @@ export async function confirmPayment(
177177 const url =
178178 window . location . origin + ( route ? route : `${ base } /organization-${ orgId } /billing` ) ;
179179
180+ const paymentMethod = await sdk . forConsole . billing . getPaymentMethod ( paymentMethodId ) ;
181+
180182 const { error } = await get ( stripe ) . confirmPayment ( {
181183 clientSecret : clientSecret ,
182184 confirmParams : {
@@ -206,8 +208,9 @@ export async function confirmSetup(
206208
207209 const { setupIntent, error } = await get ( stripe ) . confirmCardSetup ( clientSecret , {
208210 payment_method : paymentMethodId ,
209- return_url : `${ baseUrl } ${ urlRoute ?? `organization-${ get ( organization ) . $id } /billing?clientSecret=${ clientSecret } `
210- } `
211+ return_url : `${ baseUrl } ${
212+ urlRoute ?? `organization-${ get ( organization ) . $id } /billing?clientSecret=${ clientSecret } `
213+ } `
211214 } ) ;
212215
213216 if ( error ) {
You can’t perform that action at this time.
0 commit comments