Extract custm_field value from a Stripe Checkout Session

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

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

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

Could you remove the get() function and copy-paste directly this formula: {{68.body.data[1].custom_fields[1].text.value}}

2 Likes

Thank you @Thomas_Gaillard this has solved my problem!

1 Like