Payment total linked to value calculated inside page code

hi there, did you figure it out ? i need the same thing…