Solving Stripe Checkout Session Issues on Make.com
Hi there, fellow Make.com users! Today, I want to share a solution to a problem that some of you might have encountered. The problem is about extracting a custom_field value from a Stripe checkout session. I know, it sounds a bit tricky, but don't worry, I've got you covered!
The Problem
So, you've successfully used the Stripe API module to grab the relevant checkout session data from Stripe. But when you try to retrieve the custom_field value, you hit a roadblock. You've tried using map and get, but no success. The structure of the data you're dealing with looks something like this:
[Insert Image Here]
The Solution
Here's the thing: you probably need to specify the array index for the 'data' and 'custom_fields' arrays. So, instead of just using get, try something like this:
{{68.body.data[1].custom_fields[1].text.value}}
And voila! You should now be able to extract the custom_field value from your Stripe checkout session.
Troubleshooting Tips
If you're still having trouble, make sure you've removed the get() function and copy-pasted the formula directly. It should look something like this:
{{68.body.data[1].custom_fields[1].text.value}}
Summary
And there you have it! A simple solution to a problem that might have been bugging you for a while. Remember, when dealing with arrays in Stripe checkout sessions, don't forget to specify the array index. I hope this helps, and happy making!
You do have further questions?
Ask your question via E-Mail: Richard@make-app.de
Book a paid Support & Consulting Session
New Make.com user? Sign up through this Affiliate Link to receive 10.000 operations for FREE.