For some reason, everything is being initialized properly when I load the page for the first time, except for the paymentID and Amount, which are being display only after I