You are here

function pay_method::set_max_amount in Pay 6

Same name and namespace in other branches
  1. 7 includes/handlers/pay_method.inc \pay_method::set_max_amount()

Set a default max_amount if none is specified.

File

includes/handlers/pay_method.inc, line 84
The base class for payment activities. All payment method classes should extend this class.

Class

pay_method
@file The base class for payment activities. All payment method classes should extend this class.

Code

function set_max_amount($val = NULL) {
  $this->max_amount = isset($val) ? (double) $val : 1000;
}