Foxy
1
Hi all,
I need to grab a custom_field
value from a Stripe checkout session.
I have successfully used Stripe API module to grab the relevant checkout session data from Stripe.
The structure looks like this:
I’ve been trying to use map and get to retrieve this value, but no success!
![Stripe_subscription_status_update___Make](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/1/19007eb94609206dbb5890c3f2081bcac4deb190.png)
What am I doing wrong?
You probably need to specify the array index for the “data” and “custom_fields” arrays:
I’d try something like this:
{{68.body.data[1].custom_fields[1].text.value}}
2 Likes
Foxy
3
Thanks for the reply Thomas - unfortnately I still cannot get this to work!
Do you mean it should look like this? :
![Cursor_and_Stripe_subscription_status_update___Make](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/1/19266cc89a04574d85a4a3011146e1c5a2f59811.png)
Could you remove the get() function and copy-paste directly this formula: {{68.body.data[1].custom_fields[1].text.value}}
3 Likes
Foxy
5
Thank you @Thomas_Gaillard this has solved my problem!
3 Likes