Is it possible to select multiple products under 'Price' in Stripe?
I have a form in Webflow with various radio buttons. These radio buttons have values corresponding to the created products in Stripe. Now, based on the submitted Webflow data, I want to generate a payment link for Stripe, depending on the selected products in the form.
Is it possible to select multiple products under 'Price'?
Page 1 / 1
Hi @wnadvr
Yes, the Price field is within the Line Items section.
You would need to dynamically pass the Stripe Price IDs.
@Troy Tessalone thanks for your answer. I already tried this yesterday, but then I run into the issue that the IDs are concatenated during testing, resulting in an error message.
Should I separate the IDs in a different way?
@wnadvr
The field expects an array of items, not a string of text.
Try this step: Formatter > Utilities > Text to Line Items
I tried using the text to line items function turn 4 payment IDs into a line item but it returns an error.
Its saying that the output of text to line items is an array and i have to pick one out.
@RESTOAthletic
We’d need to see screenshots with how your Zap step is configured in EDIT mode to have context about the error.
@RESTOAthletic
We’d need to see screenshots with how your Zap step is configured in EDIT mode to have context about the error.
the 4 create fee steps are all create price on an existing product then formatted them from text to line items and used it as the price for the create payment link step on stripe.
I’ve also tried to turn the quantity to a line item to put a quantity for each price but it resulted in the same error.
Any advice would help!
@RESTOAthletic
The Line Items section expects a single item for each field OR an array for each field if there are 2+ line items.
The Price field has a variable mapped that has a value which is an array of items from the Formatter step.
But the 3 other fields only have a single “1” value instead of an array the same length as the # of items for the Price field.
Ive redone creating a line item for the quantity fields and got and error that now stretches to the quantity field.
@RESTOAthletic
Post screenshots showing how your Formatter step is configured along with the OUTPUT after testing the Formatter step.
@RESTOAthletic
Post screenshots showing how your Formatter step is configured along with the OUTPUT after testing the Formatter step.
BTW @Troy Tessalone i really appreciate your guidance on this! you are awesome
@RESTOAthletic
What about screenshots for the configure and data output for Step 31?
@RESTOAthletic
What about screenshots for the configure and data output for Step 31?
here it is
@RESTOAthletic
Things to check/try:
Make sure all the Price IDs being used to test still exist in Stripe
Try process of elimination to find the field that is causing the issue.
Try turning the Zap ON and testing live, then check the Zap Runs history details to see the DATA IN/OUT for each step to help you troubleshoot: https://zapier.com/app/history/
Check the Logs tab that shows the raw API request/response, which can contain more details about the error.
@Troy Tessalone
Prices exist in stripe check
process of elimination (tested different ways of adding multiple/single products only worked when single product was added always fails on line items even when i just manually put in the price ids and comma separate them) done
i’ll try this out thank you!
In Stripe, you can't select multiple products under a single "Price" object; instead, create separate payment links or sessions for each product and combine them if needed.
@RESTOAthletic Try leaving these 2 optional Line Item field blank. (no mapped variable and no static value)
@RESTOAthletic Try leaving these 2 optional Line Item field blank. (no mapped variable and no static value)
this worked! Thanks @Troy Tessalone now the next challenge is associating payments to payment links lol there doesnt seem to be any data that correlates the two
@RESTOAthletic
Try using this Zap trigger: Stripe - Checkout Session Completed