Skip to main content

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'?

 

 

Hi @wnadvr 

Yes, the Price field is within the Line Items section.

You would need to dynamically pass the Stripe Price IDs.

Help article for more context about the expected values: https://help.zapier.com/hc/en-us/articles/8496241696141-Add-custom-values-to-dropdown-menu-fields-in-Zaps#01H7FR09FBEAKK4ZZP678QDE9T

 


@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

Help: https://zapier.com/help/create/basics/use-line-items-in-zaps


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:

  1. Make sure all the Price IDs being used to test still exist in Stripe
  2. Try process of elimination to find the field that is causing the issue.
  3. 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/
    1. Check the Logs tab that shows the raw API request/response, which can contain more details about the error.

 


@Troy Tessalone 

  1. Prices exist in stripe check
  2. 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
  3. 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.


@jhonstunt 

Stripe API endpoint documentation supports line items: https://docs.stripe.com/api/payment-link/create?lang=php

 


@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

That should have the plink ID.

Help: https://help.zapier.com/hc/en-us/articles/10821467221133-How-to-use-Stripe-Payment-Links-with-Zapier

 


@RESTOAthletic

Try using this Zap trigger: Stripe - Checkout Session Completed

That should have the plink ID.

Help: https://help.zapier.com/hc/en-us/articles/10821467221133-How-to-use-Stripe-Payment-Links-with-Zapier

 

You are Godsent! this works perfectly!


That’s awesome @RESTOAthletic! A huge thanks to Troy for lending a hand here and for pointing you in the right direction!

If you have any other questions, please don’t hesitate to reach out to the Community. We’re always happy to help! 🤗


Reply