+ Card ending in {paymentMethod.last4} + {paymentMethod.brand} +
+diff --git a/src/lib/actions/analytics.ts b/src/lib/actions/analytics.ts
index 60d86ce19..70e47ec37 100644
--- a/src/lib/actions/analytics.ts
+++ b/src/lib/actions/analytics.ts
@@ -218,5 +218,7 @@ export enum Submit {
PaymentMethodDeleted = 'submit_payment_method_deleted',
BillingAddressDeleted = 'submit_billing_address_deleted',
BillingAddressCreated = 'submit_billing_address_created',
- BillingAddressUpdated = 'submit_billing_address_updated'
+ BillingAddressUpdated = 'submit_billing_address_updated',
+ OrganizationPaymentAdded = 'submit_organization_payment_added',
+ OrganizationBackupPaymentAdded = 'submit_organization_backup_payment_added'
}
diff --git a/src/lib/components/box.svelte b/src/lib/components/box.svelte
index c16d116ea..0d9b51ca6 100644
--- a/src/lib/components/box.svelte
+++ b/src/lib/components/box.svelte
@@ -5,5 +5,8 @@
Appwrite credit will automatically be applied to your next invoice.
-Credit balance: {credit}
- -Add a billing address
-Add a billing address
+- Transaction history for this Organization. Download invoices for more details about your - payments. -
-- You have no payment history. After you receive your first invoice, you'll see it - here. -
-View or update your organization payment methods here.
++ View or update your organization payment methods here. A maximum of two payment methods can + be added. +
- {paymentMethod.brand} - {paymentMethod.last4}, expiring: {paymentMethod.expiryMonth}/{paymentMethod.expiryYear} - {#if paymentMethod.default} {/if} -
- {/each} - - {:else} -Add a payment method
-+ Card ending in {paymentMethod.last4} + {paymentMethod.brand} +
++ Card ending in {paymentMethod.last4} + {paymentMethod.brand} +
+An overview of your upcoming payments.
++ Your current project plan. For more information on Appwrite plans, +
${currentTier.price}
X projects
Next billing data
-XX DATE
-+ Billing period: {toLocaleDate($organization.billingCurrentInvoiceDate)} - {toLocaleDate( + $organization.billingNextInvoiceDate + )} +
+ +Usage on the Pro plan will be charged at the end of each billing period at the following - rates. Next billing period: 05 Jun, 2023. + rates. Next billing period: {toLocaleDate(nextDate)}