Script it …
EDIT: one variable missing from that Tutorial is the Payment Amount, which you can get using this…
var tendered = Data.Get("tenderedAmount");
Be aware that the Data.Get("varName")
uses variable names that are case-sensitive. So this does not work, for example:
var tendered = Data.Get("TenderedAmount");
^
Here are a few that I am aware of that you can use with Data.Get …
Data.Get("paymentTypeName");
Data.Get("accountName");
Data.Get("tenderedAmount");
Data.Set("description", paymentinfo); // sets the Payment Description aka {DESCRIPTION}
Data.Set("canContinue",false); // this stops the Payment Processor