Payment from variable amount

@code-queen same problem, “charge” is coming up as not defined, I’ve attached photo. Hope there’s a solution to what I’m doing wrong.