I don't know where I found the original sample code but this is what I
am using to submit payaments and generate a detailed receipt for the
customer. $customer = (object) array(); $customer->first_name =
tools::get_field_value("bill_first_name"); $cu...