Cloud Firestore is a cloud-hosted, NoSQL database that your iOS, Android, and web apps can access directly via native SDKs.
Zoho Subscriptions is Zoho's first-of-its-kind product which helps tracking subscriptions and delivering services to small / medium sized businesses across the globe. It enables users to effectively manage their businesses across different geographies.Zoho Subscriptions Integrations
Zoho Subscriptions + Cloud FirestoreCreate Cloud Firestore Document from Cloud Firestore from Payment Success to Zoho Subscriptions Read More...
Zoho Subscriptions + Cloud FirestoreCreate Cloud Firestore Document from Cloud Firestore from Cancel Subscription to Zoho Subscriptions Read More...
Zoho Subscriptions + Cloud FirestoreCreate Cloud Firestore Document to Cloud Firestore from New Invoice in Zoho Subscriptions Read More...
Zoho Subscriptions + Cloud FirestoreCreate Cloud Firestore Document to Cloud Firestore from New Subscription in Zoho Subscriptions Read More...
Cloud Firestore + MySQLAdd new rows in MYSQL database when Firebase records are updated Read More...
It's easy to connect Cloud Firestore + Zoho Subscriptions without coding knowledge. Start creating your own business flow.
New Document Within a Firestore Collection
Triggers when a subscription is canceled
Triggers when a new Invoice is created
Triggers when a new subscription is created
Triggers when a payment received successfully
Creates a new document within a Cloud Firestore collection.
Create a new subscription. To create a subscription for a new customer, you have to pass the customer object. To create a subscription for a existing customer pass the customer_id of that customer.
Firebase is a mobile and web application development platform that provides several features such as cloud messaging, user authentication, databases, and security. Firebase has recently introduced a new set of products—Cloud Firestore and Zoho Subscriptions—that can be integrated with each other.
Cloud Firestore is a NoSQL document database service that is built on the Firebase platform. It is designed to store and sync data across clients and servers and it uses JSON as its data format. Cloud Firestore is not a part of the Firebase platform but is a separate, standalone service that is built on the Firebase infrastructure. Cloud Firestore was launched in December 2017 and is now available as a standalone service as well as as a beta feature in the Firebase platform.
Zoho Subscriptions is a software as a service (SaaS. product by Zoho Corporation. It allows users to create, track and manage subscriptions for their products and services. Since it was released, it has been used for over 1,400 apps and has processed over $18 billion in transactions. One of the main reasons behind the popularity of Zoho Subscriptions is that it enables users to integrate their applications with multiple payment gateways such as Braintree, Stripe, Paypal, BigCommerce, Shopify, and more. In this article, we will learn how to integrate Cloud Firestore and Zoho Subscriptions for your app.
Connecting Cloud Firestore and Zoho Subscriptions is a simple process, which can be divided into three steps:
Create a project in both Cloud Firestore and Zoho Subscriptions. Create an access token in Cloud Firestore. Create a subscriber in Zoho Subscriptions.
1.1 Create a Project in Cloud Firestore
To connect Cloud Firestore to Zoho Subscriptions, you need to first create a project in each service.
Step 1. Click on the link for ‘Get Started’ under ‘Add Project’ in the Cloud Firestore conspe. Specify a name for your project and select a region for it. Click on ‘Create Project’ once done.
Step 2. After creating your project, you will be redirected to your project page. From here click on ‘Rules’ under ‘Project Settings’ on the left-hand side pane. This will bring up your project’s Rules screen. Click on the ‘+ Add Rule’ button at the top right corner to create a rule for your project. Specify a unique name for your rule and then click on ‘Add Rule’. Your project’s rules screen will look like this:
Before moving ahead, copy down your project id (which value will be different than mine. You will need this later to create an access token in Cloud Firestore.
1.2 Create a Project in Zoho Subscriptions
Now move on to Zoho Subscriptions and create a new project there. To create a new project, log in to the Zoho Subscription Contrp Panel and click on ‘+ New Project’ under ‘Add Project’ menu item in the top navigation bar. Enter all the required details for your new project and click on ‘Save & Go To Project’ when done.
After saving your new project, you will be navigated to the dashboard of your project where you should see something like this:
From here you can view statistics related to your subscription business, create subscribers, integrate plugins, etcetera. For our purpose let’s move ahead to integrating our app with Zoho Subscription. For this, click on ‘Subscribers’ under ‘Subscribers & Integrations’ menu item at the top navigation bar. The sub-navigation panel will look like this:
You can create subscribers from here by fplowing the steps mentioned below:
Click on ‘New Subscriber’ button under ‘Create New Subscriber’ section at the bottom of this panel. Give your subscriber a unique name i.e., “Mobile App User” or something similar. Specify an email address for this subscriber which he/she will use to provide his/her credentials for authorizing payments. Once done, click on ‘Create’ to finish creating this subscriber. Then confirm the creation of this subscriber by clicking on ‘Send Invitation Email’ button at the bottom of this panel. Now navigate to your email inbox and confirm this email by clicking on the link inside it. Once you have confirmed the email, you will be redirected back to Zoho Subscriptions where you will be able to see your newly created subscriber listed in the panel under the ‘Subscriber List’ section at the bottom of this panel. Your subscriber should look something like this. That’s it! You have now connected Cloud Firestore and Zoho Subscriptions for your app! In the next section we will learn how to get an access token for this subscriber in Cloud Firestore so that we can use it in our app code to connect our app with Zoho Subscriptions from where our subscribers will pay for our subscription services offered by our app. So let us move ahead to the next step! 2. Creating an Access Token in Cloud Firestore Now let us create an access token in Cloud Firestore for our subscriber which we have just created in the last step above using Cloud Firestore conspe v2 or using using Cloud Functions v2 or using NodeJS SDK v2 APIs. 2.1 Create an Access Token Using Conspe In order to do so, navigate back to your project dashboard in Cloud Firestore by clicking on your project name from the top navigation bar in the conspe after logging into it from here. Then from here click on ‘Rules’ under ‘Project Settings’ category on the left-hand side pane. From here click on ‘+ Add Rule’ button at the top right corner to add a new rule for your project. Specify a unique name for this rule and then click on ‘Add Rule’. That’s it! You have successfully created a rule based access token in Cloud Firestore! Now go back to your conspe by clicking on your project name from the top navigation bar after logging into it from here. Then from here click on ‘Token Generator’ tab under ‘Security & Keys’ menu item. From here click on ‘Generate Token (v2)…’ button. You will see a dialog box like this. Here enter email address of your subscriber (which we created in step 1 above. and specify an expiry time i.e., 90 days (in seconds. for this access token using dropdown box then click on ‘Generate Token (v2)…’ button. A dialog box like this will appear. Copy down this token value somewhere because we will need it later while making API calls to connect our app with Zoho Subscriptions from where our subscribers will pay for our subscription services offered by our app. That’s it! We have now created an access token in Cloud Firestore for our subscriber! 2.2 Create an Access Token Using NodeJS SDK To do so, first install NodeJS SDK by fplowing these instructions then run npm install -g firebase-tops command from Terminal or Command Prompt window to install it globally if not already done so. Then copy down these values shown below in text boxes along with their corresponding labels from Cloud Firestore conspe v2 or using using Cloud Functions v2 or using NodeJS SDK v2 APIs or any other source depending upon what method you are using for creating an access token in Cloud Firestore for your subscriber who is going to use his/her credentials for authorizing payments. These values are required while creating an access token using NodeJS SDK v2 APIs which we are going to do next. Your project ID (project_id. Your project's region (region. Expiry time (expires_in. Email address of your subscriber (from whom you are getting payments. (email_address. Let us now move ahead to creating an access token using NodeJS SDK v2 APIs for our subscriber who is going to use his/her credentials for authorizing payments for paying for our subscription services offered by our app which we are developing here in this tutorial series! Step 1:
The process to integrate 403 Forbidden and 403 Forbidden may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.