How to call a payable function with arguments on my dapp?

hi guys, I am unable to set up a payable function on my front-end dapp. I want to know how to interact with the function with react js.

here my solidity code:

function buyMedicine(address ref) public payable {}

Looking forward to the code to interact with function. Thanks

1 Like

what have you done on the frontend side of things to try call the function

Hi, thanks. i have figured out the solution.