Hi community!
I have a marketplace app which is connected to Stripe for payments and need help with several issues:
- User shopping cart: The workflow is successful only if there are more then 1 item in the cart. When just 1 item, I get an error message. Here are my settings, I believe it’s due to a false Description field. Can someone tell me how to set it right for both cases - 1 and several items?
-
Where can I set the names for each purchased item for the stripe payment page? Here an example from the internet:
-
I’m selling digital files so after a successful payment, I want to set a step in my workflow for sending a confirmation email to the customer with attached file/product to it. Each digital item in the marketplace has 6 different variations, which I set as individual parameters to the item data as an upload file type. I did it like this because each product in the marketplace has always 6 variations to them. How should I set the dinamic data for the attached file in my workflow so that the right file is being send? When adding the file to the cart, the client has chosen the file version in a dropdown menu.
Many thanks in advance! Best,
Yuliya
1 Like
@superremontbg The single-item error usually means Stripe expects a list of items but your workflow sends just one thing. Make sure you always pass a list of cart items, even if there’s only one, and use the product name as the description.
The item names shown on Stripe come from the line item name/description fields in the Stripe step. Map your product title there.
For the digital file email, save the selected variation on the cart item when it’s added to the cart. After payment, send the email using the file linked to that saved variation so the customer gets the correct download.
Hi connect10,
many thanks for your advice! May I ask you couple of questions please for more clarity?
Items list in the cart: How can I pass a list of items when there is just one item in the cart?
Stripe payment page with items labels: I put a name of the items and now they are listed in one line and a price in total in the stripe payment page. Could you tell me how should I fix it to have each item listed individually and have the total price at the very end? Here a screenie of my setting:
Digital file: thank you, I will have a look and test it as suggested
Best,
Yuliya
@superremontbg Hey Yuliya, happy to clarify 
Single item in cart:
Even with one product, you still pass a list in Bubble. The easy way is to use something like:
Search for Cart Items (constraint: User = Current User)
That search always returns a list, whether it has 1 item or many, so Stripe works in both cases.
Stripe item labels showing as one total line:
That usually happens when using one combined line item instead of Stripe’s multiple line items.
Make sure your Stripe action is set to create line items from a list of cart items, and map:
- Name → Product title
- Amount → Each cart item’s price
- Quantity → Cart item quantity
When Stripe receives real line items, it will list each product separately and show the total at the bottom automatically.
Hope that makes things clearer, you’re very close to having this fully working!
Hi connect10!
Many thanks, now payment is working also when just one item in the cart! Such a relief 
I managed also to have all item’s labels in the stripe payment page, however still not as a list but one single line and a total price. Where do you set the stripe action to create line items from a list of cart items as you suggest? Is this some additional step in the workflow maybe? In the menu that I’m using I don’t see such an option.
Hope you could help me further. Your time is highly appreciated!
2 Likes