Goal:
I’m trying to create a checkout session with the Stripe API using Make. The checkout session needs to include line items with specific prices and quantities. I’m using an aggregator as the number of articles may change.
Issue:
Despite configuring the request correctly, I’m encountering an issue where the line items are not being processed as expected by the Stripe API. Instead of receiving the line items as an array of objects, the Stripe API seems to be receiving them as “[Collection], [Collection], [Collection]”.
Would anyone know the reason? Thank you in advance
Hi, try using the module json transform with in the json app
Or if you have an enterprise plan build a stringify custom function
2 Likes
Welcome to the Make community!
See Stripe API Create a payment link ARRAY - #4 by samliew for an idea of how your line items should be structured.
If you need further assistance, please provide the following:
Please provide the output bundles of the Array Aggregator module 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.
Save each bundle contents in your text editor as a bundle.txt
file, and upload it here into this discussion thread.
Uploading them here will look like this:
module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)
B.
If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:
-
Either add three backticks ```
before and after the code, like this:
```
input/output bundle content goes here
```
-
Or use the format code 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.
This will allow others to better assist you. Thanks!
samliew – request private consultation
Join the unofficial Make Discord server to chat with other makers!