Replace the existing payment method for your organization.
-
- {#if methods?.total}
- {#each filteredMethods as method}
-
+
+
+ {#if methods?.total}
+ {#each filteredMethods as method}
+
+
+
+
+
+ {method.brand} ending in {method.last4}
+
+
+ {#if method.$id === $organization.backupPaymentMethodId}
+ Backup
+ {:else if method.$id === $organization.paymentMethodId}
+ Default
+ {/if}
+
+
+
+ {/each}
+ {/if}
+
+
+ {#if methods?.total}
-
-
-
- {method.brand} ending in {method.last4}
-
-
- {#if method.$id === $organization.backupPaymentMethodId}
- Backup
- {:else if method.$id === $organization.paymentMethodId}
- Default
- {/if}
-
+ Add new payment method
-
- {/each}
- {/if}
+ {/if}
+ {#if selectedPaymentMethodId === null}
+
+
-
- {#if methods?.total}
-
- {/if}
- {#if selectedPaymentMethodId === null}
-
-
-
-
-
-
-
- {/if}
+
+
+
+
+ {/if}
+
-
+
-
+
diff --git a/src/routes/console/wizard/cloudOrganizationChangeTier/choosePlan.svelte b/src/routes/console/wizard/cloudOrganizationChangeTier/choosePlan.svelte
index 21a1ea31a..847840580 100644
--- a/src/routes/console/wizard/cloudOrganizationChangeTier/choosePlan.svelte
+++ b/src/routes/console/wizard/cloudOrganizationChangeTier/choosePlan.svelte
@@ -18,6 +18,7 @@
$: if ($changeOrganizationTier.billingPlan === 'tier-0' && $changeTierSteps) {
$changeTierSteps = updateStepStatus($changeTierSteps, 2, true);
$changeTierSteps = updateStepStatus($changeTierSteps, 3, true);
+ $changeTierSteps = updateStepStatus($changeTierSteps, 4, true);
}
$: if (
@@ -26,6 +27,7 @@
) {
$changeTierSteps = updateStepStatus($changeTierSteps, 2, false);
$changeTierSteps = updateStepStatus($changeTierSteps, 3, false);
+ $changeTierSteps = updateStepStatus($changeTierSteps, 4, false);
}
$: if ($changeOrganizationTier.billingPlan) {
@@ -73,10 +75,12 @@
members = await sdk.forConsole.teams.listMemberships($organization.$id);
//Select closest tier from starting one
- if ($organization.billingPlan === 'tier-2') {
- $changeOrganizationTier.billingPlan = 'tier-1';
- } else if ($organization.billingPlan === 'tier-1') {
- $changeOrganizationTier.billingPlan = 'tier-2';
+ // if ($organization.billingPlan === 'tier-2') {
+ // $changeOrganizationTier.billingPlan = 'tier-1';
+ // }
+ // else
+ if ($organization.billingPlan === 'tier-1') {
+ $changeOrganizationTier.billingPlan = 'tier-0';
} else if ($organization.billingPlan === 'tier-0') {
$changeOrganizationTier.billingPlan = 'tier-1';
}
diff --git a/src/routes/console/wizard/cloudOrganizationChangeTier/confirmDetails.svelte b/src/routes/console/wizard/cloudOrganizationChangeTier/confirmDetails.svelte
index 651833cab..57f6e439c 100644
--- a/src/routes/console/wizard/cloudOrganizationChangeTier/confirmDetails.svelte
+++ b/src/routes/console/wizard/cloudOrganizationChangeTier/confirmDetails.svelte
@@ -1,7 +1,7 @@