I'm an intermediate programmer at best working on a new payment module. It seems to work fine, unless a coupon is used.

It uses the order total via:
HTML Code:
$this->totalsum = $order->info['total'];
but if a coupon is used, it is still getting the gross order total instead of the net amount after coupon.

Can anyone help me with the variable name or code?

Thanks.