See the below examples to understand how to implement dynamic pricing or quantity into your dApp.

The examples below use the Crossmint Pay Button, but the same approach is compatible with the Embedded Checkout as well.