Wix Payment Form: need quantity field to recalculate price for checkout

Hi there,
I need some assitance with Wix Forms vs. Pay API.
I have set up a Wix Forms Payment Form in the classical Wix editor. I made my edits to the form and set up the item price in the Payment section in Form Settings.
All of that works fine, but now I need the price that is set up and actually collected in checkout to change dependent on the quantity of the item chosen by the user. For that I have added a Dropdown Field with various choices (quantities from 1 to 5). I need the price to by multiplied by the number chosen in the dropdown field.
I believe this must be possible and is something to be coded in connection with the Wix form, as the form delivers the data to the Pay API. But I have no idea how to set this up nor have I found anything about that here in the forum.

Hope someone can help with this.
Thanks and best
Peter

1 Like

Hey!

Working (but a lot of work) solution for this is to use backend api to create “products” for each item:

"items": [        {  
name: "Product 1",  price: *oneticketprice*   },       {  
name: "Product 2",  price: *twoticketprice*       }     ],
etc...

And then attach the dropdown menu items to return the product info to the payment api.

Take a look at this:

This solution will works with all payments providers? (for example Przelewy24)