Appwrite credit will automatically be applied to your next invoice.
-
-
-
Credit balance
- {formatCurrency(balance)}
+ {#if $organization?.billingPlan === BillingPlan.STARTER}
+
+ Upgrade to Pro to add credits
+ Upgrade to a Pro plan to add credits to your organization. For more information on what
+ you can do with a Pro plan,
+ view our pricing guide.
+
+ {:else}
+
- {:else}
- Add credits
+ {/if}
+
+
+ {#if $organization?.billingPlan === BillingPlan.STARTER}
+
{/if}
diff --git a/src/routes/console/organization-[organization]/billing/paymentHistory.svelte b/src/routes/console/organization-[organization]/billing/paymentHistory.svelte
index 112732418e..edf381c3f4 100644
--- a/src/routes/console/organization-[organization]/billing/paymentHistory.svelte
+++ b/src/routes/console/organization-[organization]/billing/paymentHistory.svelte
@@ -3,6 +3,7 @@
import {
CardGrid,
DropList,
+ DropListItem,
DropListLink,
EmptySearch,
Heading,
@@ -21,13 +22,17 @@
} from '$lib/elements/table';
import { toLocaleDate } from '$lib/helpers/date';
import { formatCurrency } from '$lib/helpers/numbers';
- import type { InvoiceList } from '$lib/sdk/billing';
+ import type { Invoice, InvoiceList } from '$lib/sdk/billing';
import { sdk } from '$lib/stores/sdk';
import { VARS } from '$lib/system';
import { Query } from '@appwrite.io/console';
import { onMount } from 'svelte';
+ import RetryPaymentModal from './retryPaymentModal.svelte';
+ import { trackEvent } from '$lib/actions/analytics';
let showDropdown = [];
+ let showRetryModal = false;
+ let selectedInvoice: Invoice | null = null;
let offset = 0;
let invoiceList: InvoiceList = {
@@ -125,6 +130,22 @@
event="download_invoice">
Download PDF
+
+ {#if false}
+ {
+ selectedInvoice = invoice;
+ showRetryModal = true;
+ showDropdown[i] = !showDropdown[i];
+ trackEvent(`click_retry_payment`, {
+ from: 'button',
+ source: 'billing_invoice_menu'
+ });
+ }}>
+ Retry payment
+
+ {/if}
@@ -147,3 +168,7 @@
{/if}
+
+{#if selectedInvoice}
+
+{/if}
diff --git a/src/routes/console/organization-[organization]/billing/replaceCard.svelte b/src/routes/console/organization-[organization]/billing/replaceCard.svelte
index 8dfc4fe501..e253489906 100644
--- a/src/routes/console/organization-[organization]/billing/replaceCard.svelte
+++ b/src/routes/console/organization-[organization]/billing/replaceCard.svelte
@@ -1,16 +1,16 @@
+
+
+
+
+ Your payment of ${invoice.amount} due on {toLocaleDate(
+ invoice.dueAt
+ )} has failed. Retry your payment to avoid service interruptions with your projects.
+
+
+
+
+
+
+
+
+
+
diff --git a/src/routes/console/organization-[organization]/excesLimitModal.svelte b/src/routes/console/organization-[organization]/excesLimitModal.svelte
index e39b817693..bead52e175 100644
--- a/src/routes/console/organization-[organization]/excesLimitModal.svelte
+++ b/src/routes/console/organization-[organization]/excesLimitModal.svelte
@@ -62,10 +62,6 @@
Your usage exceeds the {tierToPlan($organization.billingPlan).name} plan limits
- Appwrite Pro is now available. To facilitate a smooth transition for your projects, Starter plan
- will maintain its current state of unlimited resource usage. This extension will be in effect
- until January 31st, 2024.
-
{#if $organization.billingPlan === BillingPlan.STARTER}
Usage for {$organization.name} organization has reached the limits of the {tierToPlan(