Learn how to accurately retrieve payment amounts from Stripe using Pabbly Connect with this detailed step-by-step tutorial. Discover how to seamlessly connect your essential tools through accessible instructions that make powerful automation available to professionals at every skill level.
Watch Step By Step Video Tutorial Below
1. Setting Up Pabbly Connect for Stripe Integration
To get an accurate payment amount from Stripe, first, access Pabbly Connect. This platform allows you to set up automated workflows between Stripe and other applications seamlessly. Start by logging into your Pabbly Connect account and create a new workflow.
Within the workflow, select Stripe as your trigger application. Choose the event ‘Checkout Complete’ to initiate the process. After this, you will be provided with a webhook URL. This URL is crucial for connecting your Stripe account to Pabbly Connect.
2. Connecting Stripe to Pabbly Connect
Next, you will need to connect your Stripe account to Pabbly Connect. Use the webhook URL generated in the previous step to set up the connection. This integration allows Pabbly Connect to receive payment notifications directly from Stripe.
- Log into your Stripe account.
- Navigate to the Webhooks section.
- Add a new webhook and paste the URL from Pabbly Connect.
- Select the events you want to trigger, specifically ‘Checkout Session Completed’.
By following these steps, you ensure that Stripe sends payment data to Pabbly Connect whenever a checkout is completed. This connection is vital for receiving accurate payment amounts.
3. Testing Payment Amount Retrieval from Stripe
After setting up the connection, it’s time to test the payment retrieval process. Make a test payment of 500 rupees through your Stripe account. Once the payment is processed, Pabbly Connect will receive a webhook response containing the payment details.
Upon checking the response, you may notice that the amount appears as 50,000 instead of 500. This discrepancy occurs because Stripe sends the amount in a format that does not support decimal values, hence adding extra zeros. Understanding this will help you correct the amount in the next step.
4. Correcting the Payment Amount Using Pabbly Connect
To correct the payment amount received from Stripe, utilize the Number Formatter feature within Pabbly Connect. This module allows you to perform mathematical operations on the data received. To do this, add an action step in your workflow and select the Number Formatter app.
In the Number Formatter settings, choose the action event as ‘Perform Math Operation’. Map the amount received from Stripe in the Numbers field. To convert the amount to the correct value, add a comma and then write 100, selecting ‘Divide’ as the operation. This effectively converts 50,000 to 500, the accurate payment amount.
5. Finalizing the Workflow in Pabbly Connect
Once you have corrected the payment amount using the Number Formatter, it’s essential to finalize your workflow in Pabbly Connect. After performing the math operation, click on ‘Save and Send Test Request’ to ensure the changes are applied correctly.
Upon successful execution, Pabbly Connect will return the accurate payment amount. You can then use this corrected amount in subsequent actions, such as sending it to other applications or storing it in a database. This flexibility allows you to automate your workflow effectively.
Conclusion
In this tutorial, we explored how to accurately retrieve payment amounts from Stripe using Pabbly Connect. By connecting Stripe, setting up the Number Formatter, and performing the necessary calculations, you can ensure that your payment data is precise and ready for further processing. This integration streamlines your workflow and enhances the accuracy of your payment processing.
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!