# Plugin Stripe How to use

**URL:** <https://community.weweb.io/t/plugin-stripe-how-to-use/7808>\
**Category:** Ask us anything\
**Created:** [March 28, 2024, 2:52am UTC](https://community.weweb.io/t/plugin-stripe-how-to-use/7808 "2024-03-28T02:52:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![victoralmeida](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/victoralmeida/32/13170_2.png) [@victoralmeida](https://community.weweb.io/u/victoralmeida)\
**Post date:** [March 28, 2024, 2:52am UTC](https://community.weweb.io/t/plugin-stripe-how-to-use/7808/1 "2024-03-28T02:52:31Z")

</div>

What is the correct way to dynamically pass a list of prices and quantities using the PRICES field?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/8aedf8d6d635d439db7840581e3a62cc8d9275d2.png)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [March 28, 2024, 4:51pm UTC](https://community.weweb.io/t/plugin-stripe-how-to-use/7808/2 "2024-03-28T16:51:42Z")

</div>

Hi @victoralmeida 👋

You should be able to bind the `Prices` field to an array of price ids or you can click on the `Add item` button several times to add price ids individually.

Does that help?

Not sure you need this but since you’re working with Stripe, I thought I’d share the mini-course @Quentin created on the topic:

> **[Stripe 101](https://academy.weweb.io/intro-to-stripe/)**
>
> Learn how to work with Stripe in a WeWeb app

It could be helpful down the line 🙂

---

<div class="post-metadata">

**Author:** ![victoralmeida](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/victoralmeida/32/13170_2.png) [@victoralmeida](https://community.weweb.io/u/victoralmeida)\
**Post date:** [March 30, 2024, 1:04am UTC](https://community.weweb.io/t/plugin-stripe-how-to-use/7808/3 "2024-03-30T01:04:45Z")

</div>

Hello Joyce, how are you? I’m just passing a list of prices\_id, but it gives this error and I don’t know how to proceed… follow the images below and I’ll follow your tip and look at the classes. Thanks! But if anyone has a solution for this, I’d be grateful.

 ![Imagem do WhatsApp de 2024-03-29 à(s) 22.03.48_55e5747d](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/72a1c600be2094c2cba5cf4b21621e95e999fb7d.jpeg)  
 ![Imagem do WhatsApp de 2024-03-29 à(s) 22.04.01_4eca30fb](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/0/0ace7f228d774ffb563e8a542a669415c54b8e64.jpeg)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [April 3, 2024, 3:26pm UTC](https://community.weweb.io/t/plugin-stripe-how-to-use/7808/4 "2024-04-03T15:26:59Z")

</div>

Hi @victoralmeida 👋

I’m not 100% sure. Looking at [the Stripe documentation](https://docs.stripe.com/api/prices/list), I think perhaps an array of objects would do the trick, maybe something that looks like this:

```auto

[
{id: "price_1Ozblablabla"}, 
{id: "price_1Ozmoreblabla"}
]

```

Can you give it a try and let me know if that works for you?

If not, I’ll ask around 🙂
