Learn how to automate the removal of Google Drive folder access for cancelled Stripe subscriptions using Pabbly Connect in this step-by-step tutorial. This comprehensive guide reveals exactly how to connect your applications and automate repetitive tasks — accessible for professionals of all technical backgrounds.
Watch Step By Step Video Tutorial Below
1. Setting Up Pabbly Connect for Automation
To automate the removal of Google Drive folder access when a Stripe subscription is cancelled, you will use Pabbly Connect. First, log into your Pabbly Connect account and navigate to your dashboard.
Once you are in your dashboard, create a new workflow by clicking on the ‘+ Create Workflow’ button. Name your workflow something descriptive like ‘Remove Access from Google Drive on Subscription Failure from Stripe’ and click ‘Create’ to proceed.
2. Configuring the Trigger Event in Pabbly Connect
In this step, you will set up the trigger event that starts the automation process. Select the Stripe application from the trigger options in Pabbly Connect. The trigger event you need to choose is ‘Cancelled Subscription’.
- Choose ‘Stripe’ as your application.
- Select the trigger event ‘Cancelled Subscription’.
- Copy the generated webhook URL for the next step.
After setting up the trigger, you need to add this webhook URL to your Stripe dashboard. This will allow Stripe to send data to Pabbly Connect whenever a subscription is cancelled.
3. Setting Up the Stripe Webhook
To connect Stripe with Pabbly Connect, navigate to your Stripe dashboard. Click on ‘Developers’ and then select ‘Webhooks’. Here, you will add a new endpoint by clicking on the ‘+ Add Endpoint’ button.
- Paste the copied webhook URL from Pabbly Connect into the endpoint URL field.
- Select the event ‘customer.subscription.deleted’ from the events list.
- Click ‘Add Events’ to save your changes.
Once the endpoint is set up, return to Pabbly Connect and test the webhook by cancelling a subscription in Stripe. This will trigger the workflow and allow you to see if the connection is successful.
4. Retrieving Customer Details from Stripe
After the trigger is set and tested, the next step is to retrieve the customer details associated with the cancelled subscription. In Pabbly Connect, add another action step and select Stripe again.
Choose the action event ‘Retrieve a Customer’ and connect to Stripe using your API keys. You will map the customer ID from the previous step to get the customer’s details. This will allow you to identify which user’s access to the Google Drive folder needs to be removed.
5. Removing Access from Google Drive
Finally, to remove access from Google Drive, add another action step in your Pabbly Connect workflow. Select Google Drive and choose the action event ‘Remove File Access’. Connect your Google Drive account by granting the necessary permissions.
In this step, you will map the email address of the customer retrieved from Stripe to remove their access from the specified Google Drive file. Select the file from which you want to revoke access, and then save and send the test request. This will execute the action and confirm that the access has been successfully removed.
Conclusion
In this tutorial, we demonstrated how to use Pabbly Connect to automate the removal of Google Drive folder access when a Stripe subscription is cancelled. This integration streamlines the process and saves time by eliminating the need for manual checks. By following these steps, you can set up your own automation easily.
Ensure you check out Pabbly Connect to create business automation workflows and reduce manual tasks. Pabbly Connect currently offer integration with 2,000+ applications.
- Check out Pabbly Connect – Automate your business workflows effortlessly!
- Sign Up Free – Start your journey with ease!
- 10,000+ Video Tutorials – Learn step by step!
- Join Pabbly Facebook Group – Connect with 21,000+ like minded people!