The focus of this article is on integrating Stripe with Notion database. By doing so, payment details of each customer payment via Stripe will be automatically saved as an item in your Notion database.
Setting up this automation is a one-time process and we will be using Pabbly Connect for this purpose.
Initially, we will connect Stripe with Pabbly Connect to retrieve details of any new payments made. Then, we will link Pabbly Connect with Notion and store the payment information in your Notion database.
Steps to Automatically Save Stripe Payment Details in Notion Database
1. Sign In / Sign Up to Pabbly Connect and Create a Workflow
2. Setup Stripe as the Trigger App to Fetch Payment Details
3. Add a Number Formatter to Correct the Payment Amount
4. Setup Notion as the Action App to Store Payment Details
Step 1:- Sign In / Sign Up to Pabbly Connect and Create a Workflow
A. Sign In / Sign Up
To begin this process, visit Pabbly Connect and create your account by clicking on the ‘Sign Up Free’ button. You can also click on Sign In if you already have an account.
![](https://pabblytuts.com/wp-content/uploads/2022/10/imageedit_2_6011743577.png)
Click on the Pabbly Connect ‘Access Now’ button
![](https://pabblytuts.com/wp-content/uploads/2022/10/imageedit_4_9618164568-1024x512.png)
B. Create Workflow
To create a new workflow, click the ‘Create Workflow’ button.
![](https://pabblytuts.com/wp-content/uploads/2022/10/imageedit_1_7918839683-1024x397.png)
Name your workflow, and click on ‘Create’.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_5_6719992651.png)
Step 2:- Setup Stripe as the Trigger App to Fetch Payment Details
Our focus will be on the procedures involved in connecting Stripe with Pabbly Connect. This will enable us to retrieve payment information from Stripe.
A. Trigger App
Trigger enables us to select the application from which Pabbly Connect will retrieve the data. In this instance, it would be Stripe.
Expand the Trigger Step, choose ‘Stripe’ as your Action App, and select ‘New Charge’ as an Action Event.
![](https://pabblytuts.com/wp-content/uploads/2022/11/imageedit_39_6233368105.png)
B. Webhook URL
You will be provided with a new Webhook URL which will be used to connect your Mailchimp account. Copy the Webhook URL.
![](https://pabblytuts.com/wp-content/uploads/2022/11/imageedit_41_3885533878-1024x114.png)
Once the Webhook URL is copied, Pabbly Connect will immediately begin searching for data from Stripe, which is indicated by the rotating Waiting For Webhook Response button.
![](https://pabblytuts.com/wp-content/uploads/2022/11/imageedit_43_9831597941-1024x183.png)
C. Connect Stripe Account
To establish a connection with your Stripe account, you need to log in to your Stripe account and click on ‘Webhooks settings’.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_107_7854525836.png)
Once you have been redirected to your Stripe account, select ‘Webhooks’ and click the ‘Add endpoint’ button.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_109_3799598731-1024x421.png)
In the Endpoint URL field, paste the previously copied Webhook URL, and then click on ‘Select events’.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_7_5590670212-1024x533.png)
Choose ‘charge.succeeded’ as events to send, and click on ‘Add events’.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_9_6996933642-1024x506.png)
Finally, click on the ‘Add endpoint’ button to establish the connection.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_11_7502332724-1024x528.png)
D. Test Connection
Now, we can check the newly established connection by performing a test payment. Open your Stripe payment form in an incognito tab, enter the required information, and initiate a payment.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_13_4982566275-1024x625.png)
Upon completion of the payment, you should receive a successful payment response accompanied by the relevant customer information.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_15_7000584870.png)
Step 3:- Add a Number Formatter to Correct the Payment Amount
The payment amount obtained from Stripe is inaccurate, as it includes two extra zeroes. To obtain the correct amount, we need to divide the value by 100. To achieve this, we will incorporate a Number Formatter into our workflow.
Choose ‘Number Formatter by Pabbly’, select ‘Perform Math Operation’ as an Action Event, and click on ‘Connect’.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_17_2406239758.png)
In the Numbers section of the Number Formatter, map the payment amount from the previous step, enter ‘100’, and separate both values with a comma. This will inform Pabbly that the operation needs to be performed between these two values.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_19_7220252542-1024x370.png)
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_21_9012640224.png)
Choose ‘Division’ as the desired operation, and then click on ‘Save & Send Test Request’.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_23_2194317686.png)
After the successful execution of the Number Formatter, the payment amount will be appropriately divided, resulting in a corrected and trimmed down amount.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_25_5237179088-1024x230.png)
Step 4:- Setup Notion as the Action App to Store Payment Details
Action allows us to choose the application that will get executed by the workflow trigger.
Our primary goal is to save the Stripe payment information to our Notion database, hence we will use Notion as our Action App.
A. Action App
Choose ‘Notion’ as your Action App, select ‘Create Database Item’ as an Action Event, and click on ‘Connect’.
![](https://pabblytuts.com/wp-content/uploads/2022/12/imageedit_32_5988550170-1024x380.png)
B. Connect Notion Account
To connect with your Notion account, select ‘Add New Connection’, and click on ‘Connect With Notion’. Additionally, you will have to provide the required authorization.
![](https://pabblytuts.com/wp-content/uploads/2023/04/image-6.png)
Select the Database in which you want to save the payment information.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_27_5734211549.png)
After selecting your desired database, its properties will become visible as fields within your Action Step.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_29_6154196910-1024x479.png)
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_31_2918666454-1024x415.png)
C. Map Necessary Fields
With your Notion account successfully linked, the subsequent step involves mapping the payment information obtained in the previous steps. This process enables our data to remain dynamic and change based on the received responses.
Map the Amount from the step above.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_33_5216821422-1024x440.png)
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_35_4919842340.png)
Map the remaining fields in a similar manner and click on ‘Save & Send Test Request’.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_37_5964781710-1024x576.png)
As soon as you click on ‘Save & Send Test Request’, the payment information will be stored in your Notion database.
![](https://pabblytuts.com/wp-content/uploads/2023/04/imageedit_39_2232707278-1024x271.png)
Our automation is now complete. We have successfully integrated Stripe with Notion. From now on, whenever a customer makes a successful payment via Stripe, their details will be automatically saved to your Notion database.
You can copy this entire workflow by clicking this link.
Sign Up for a free Pabbly Connect account, and start automating your business
Subscribe to our Youtube Channel for more such automation
For any other queries, visit our forum