Skip to content

Commit 2d4ecb1

Browse files
committed
fix typo
1 parent 277e06a commit 2d4ecb1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib/stores/stripe.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)