diff --git a/.gitignore b/.gitignore index 30ab4a071d99..12c38cbaa451 100644 --- a/.gitignore +++ b/.gitignore @@ -192,3 +192,8 @@ cypress/videos # JetBrains IDEs .idea/ + +# frappecloud billing +billing/node_modules +frappe/public/billing +frappe/www/billing.html \ No newline at end of file diff --git a/README.md b/README.md index aefa0db1d2bf..519bb0a141ed 100644 --- a/README.md +++ b/README.md @@ -14,36 +14,20 @@
Full-stack web application framework that uses Python and MariaDB on the server side and a tightly integrated client side library. Built for [ERPNext](https://erpnext.com). > Login for the PWD site: (username: Administrator, password: admin) diff --git a/billing/.gitignore b/billing/.gitignore new file mode 100644 index 000000000000..53f7466aca70 --- /dev/null +++ b/billing/.gitignore @@ -0,0 +1,5 @@ +node_modules +.DS_Store +dist +dist-ssr +*.local \ No newline at end of file diff --git a/billing/.prettierrc.json b/billing/.prettierrc.json new file mode 100644 index 000000000000..b2095be81e4e --- /dev/null +++ b/billing/.prettierrc.json @@ -0,0 +1,4 @@ +{ + "semi": false, + "singleQuote": true +} diff --git a/billing/README.md b/billing/README.md new file mode 100644 index 000000000000..f2e72e09d5b3 --- /dev/null +++ b/billing/README.md @@ -0,0 +1,27 @@ +# Frappe Cloud Billing + +Billing page is built to manage the billing of both desk based (ERPNext, HRMS) and portal based apps (Frappe CRM, Insights, Gameplan, Builder etc.) + +> Billing page is only built for sites hosted on Frappe Cloud. + +## Features + +- **Current Plan**: View the current plan of the site. +- **Manage Subscription**: Upgrade, downgrade your subscription plan. +- **Plans & Pricing**: View and compare all the available plans and decide which one is best for you. +- **Billing History**: View your billing history and download invoices. +- **Prepaid Credits**: Add prepaid credits to your account to pay for your subscription. +- **Payment Methods**: Add, remove your payment methods (Credit Card, Debit Card) and set a default payment method. +- **Billing Address**: Add/Update your billing address. + +## Usage + +1. Go to Billing Overview page typing `/billing` in the URL. You can also access it from your app installed on the site. +2. Billing Overview page will open with the current plan details and other options. +3. Click on the `Upgrade plan` button to upgrade or downgrade your subscription plan. +4. It will redirect you to the `Plans` page where you can select the plan you want to subscribe to. +5. Click on the `Upgrade` or `Downgrade` button to confirm the subscription. +6. Before confirming the subscription, you should add prepaid credits to your account to pay for the subscription or you can add a payment method. Check `Payment details` section in the `Billing Overview` page to add prepaid credits or select payment method. +7. Once you have added prepaid credits or payment method, you can confirm the subscription. +8. You can view your billing history and download invoices from the `Invoices` page. +9. You can add, remove payment methods and set a default payment method from the `Cards` page. \ No newline at end of file diff --git a/billing/index.html b/billing/index.html new file mode 100644 index 000000000000..4b782454be35 --- /dev/null +++ b/billing/index.html @@ -0,0 +1,18 @@ + + + + + ++ We are attempting to charge your card with + {{ formattedMicroChargeAmount }} to make sure the card works. + This amount will be refunded back to your account. +
+ + +No card found
+