Run npm i @coinflowlabs/react and import the CoinflowApplePayButton component.
Initialize the height state and create a handler to dynamically update the height of the button when the size changes.
Pass the required props such as wallet, blockchain, merchantId, and amount. The button will dynamically adjust its height with the handleHeightChange function.