You are here

function pay::total in Pay 7

Same name and namespace in other branches
  1. 6 includes/handlers/pay.inc \pay::total()
1 method overrides pay::total()
pay_form::total in includes/handlers/pay_form.inc

File

includes/handlers/pay.inc, line 168
The base class for the Payment API.

Class

pay
@file The base class for the Payment API.

Code

function total() {
  $total = (double) $this->total;
  if (strpos($total, '.') === FALSE) {
    $total .= '.00';
  }
  if (strpos($total, '.') === 0) {
    $total = '0.' . $total;
  }
  return $total;
}