Learn how to integrate Razorpay with Google Drive using Pabbly Connect to provide temporary access to Google Drive folders after payments. Revolutionize your productivity approach with just a few strategic clicks. Uncover professional methods for connecting applications and creating workflows that reclaim hours of your week.

Watch Step By Step Video Tutorial Below


1. Setting Up Pabbly Connect for Razorpay and Google Drive Integration

To begin, you need to set up Pabbly Connect to automate the process of granting temporary access to a Google Drive folder after a payment is made through Razorpay. Start by signing up for a free account on Pabbly Connect, which can be done in just a few minutes. Once you log in, navigate to the dashboard to create your automation workflow.

Click on the ‘Create Workflow’ button and name your workflow (e.g., ‘Razorpay to Google Drive’). Select the folder within your Pabbly Connect account where you want to save this workflow, and click on ‘Create’ to proceed. You will now see the workflow interface with a trigger and action window.


2. Connecting Razorpay to Pabbly Connect

The next step is to connect your Razorpay account to Pabbly Connect. In the trigger window, search for Razorpay and select it. For the trigger event, choose ‘Payment Captured’. This allows Pabbly Connect to react whenever a payment is made.

  • Select Razorpay as the app to connect.
  • Choose ‘Payment Captured’ as the trigger event.
  • Copy the webhook URL provided by Pabbly Connect.

Next, go to your Razorpay account and navigate to the Developer section to add a new webhook. Paste the copied webhook URL, select ‘Payment Captured’ as the action event, and click on ‘Create Webhook’. Now, Pabbly Connect will receive payment details whenever a transaction occurs.


3. Filtering Payments to Grant Access

Once your Razorpay account is connected to Pabbly Connect, you need to set up a filter condition. This ensures that only customers who pay for a specific product get access to the Google Drive folder. In the action step, search for ‘Filter’ and select it.

  • Set the filter to check the product name from the payment response.
  • Ensure the filter value matches the product name exactly.

This filtering step is crucial as it allows you to control who receives access to the folder based on their payment. If the filter condition is met, the workflow will continue to the next step, which involves sharing the Google Drive folder.


4. Sharing the Google Drive Folder via Pabbly Connect

Now that you have set up the filter, it’s time to share the Google Drive folder using Pabbly Connect. Search for Google Drive in the action step and select ‘Share a File or Folder’ as the action event. Connect your Google Drive account by signing in and granting necessary permissions.

Next, you will need to specify the folder ID of the Google Drive folder you want to share. This can be found in the URL of the folder. Map the email address of the customer from the Razorpay payment response to share the folder with them. Choose the appropriate access level (e.g., ‘Can View’) and enable email notifications to inform the customer about their access.


5. Revoking Access After a Set Period

The final step in your automation process with Pabbly Connect is to set a delay before revoking access to the Google Drive folder. Add a new action step and select ‘Delay’ from Pabbly Connect. Specify the duration for the delay (e.g., 30 days) and save the settings.

After the delay, add another action step to remove access from the Google Drive folder. Again, select Google Drive and choose ‘Remove File or Folder Access’ as the action event. Map the customer’s email address and the folder ID to revoke access effectively. This ensures that after the specified time, the customer will no longer have access to the folder.


Conclusion

Using Pabbly Connect, you can seamlessly automate the process of granting and revoking temporary access to a Google Drive folder after a Razorpay payment. This integration allows for efficient management of digital products, ensuring customers receive access only for the duration you specify. Explore the power of automation with Pabbly Connect to streamline your workflows.

Ensure you check out Pabbly Connect to create business automation workflows and reduce manual tasks. Pabbly Connect currently offer integration with 2,000+ applications.