Payment system in dynamic pages

How can I connect a payment system to a dynamic pages. Each page has a different product price. On Pay Button you can change the price in the settings, but you can’t connect pricing to the database. The payment form also sets one price without the ability to connect to the database. What to do? I do not want to use the online store, because I want to make a unique UI design.

1 Like

You can use wix pay API to trigger custom payment process using code.

Have a look here. There is an example how to trigger payment on button click. You can store the price of the product in the database and connect to the dynamic page.

WDE0002: ItemId must be a string.
How to solve this problem?

I am not sure where you are stuck and where it is saying it must be a string. But if you want to convert a number to string just use
numbervariable.tostring() method.