I have some trouble with my code, basically I want to call the payable function in my Smart Contract through Web3.js, here is my code, I'm sure I did something wrong but I can't figure out where.
you don't have use the address of instance when you are sending the ether to the payable function. sorry i didn't saw the updated answer.i was typing the answer but i was not able to refreh to your answer.
Fixed it. The Web3.js code had to look different