Stripe Metadata Dynamic Variables not Being Added to http request

Problem Description:

We are experiencing issues with using dynamic variables in metadata fields within HTTP requests in Make.com. Here’s a breakdown of the situation:

  1. Goal: We are attempting to send dynamic data (booking information) to Stripe as metadata within a setup_intent request. Our aim is to pass booking-related metadata like booking_number and internal_booking_number as dynamic variables into these fields to associate them with each customer in Stripe.

  2. Issue: When we use static values in the metadata fields, the HTTP request works correctly, and the metadata appears as expected in Stripe. However, when we switch to dynamic variables, even though the variables are mapped correctly from previous steps, they are not being passed to Stripe. In each HTTP request input and output, the metadata fields appear as empty.

  3. Debugging Steps Taken:

  • Verified Variable Population: We confirmed that the variables hold the correct data just before the HTTP request step.

  • Tried Using Text Composer and Text Aggregator: We attempted to pass dynamic data through both the Text Composer and Text Aggregator modules to ensure proper formatting, but the data remains empty when passed to Stripe.

  • Checked Advanced Settings: We reviewed the HTTP request module’s advanced settings, including “Parse response,” “Body type” (set to application/x-www-form-urlencoded), and other parameters to make sure they align with Stripe’s requirements.

  • Tested Alternative JSON Format: We considered switching to JSON format, but as the Stripe endpoint typically expects x-www-form-urlencoded, we maintained this format.

  1. Additional Observations:
  • When we inspect the input and output logs of the HTTP request module, all mapped metadata fields (e.g., metadata[booking_number]) are showing as empty.

  • Static text entries work flawlessly, which suggests the problem lies specifically in the handling of dynamic data by Make.com.

  1. Questions for Support:
  • Is there a known issue with passing dynamic variables in x-www-form-urlencoded metadata fields through the HTTP module?

  • Are there any specific configurations or transformations we need to apply to ensure dynamic variables are recognized and passed correctly in this format?

  • If application/x-www-form-urlencoded is problematic with dynamic data, is there an alternative approach you would recommend for integrating with Stripe while using dynamic metadata?

Attachments: (If applicable, attach screenshots of the HTTP request configuration, input/output logs, and any error messages)

Any insights or solutions would be greatly appreciated, as we’ve exhausted typical debugging steps. Thank you for your assistance!

Welcome to the Make community!

To allow others to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Please share screenshots of your scenario, any error messages, relevant module fields, and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario Blueprint

Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

3. Output Bundles of Modules

Please provide the output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A. Upload as Text File

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!