SilverStripe\Omnipay\Model\Payment::init
Set gateway, amount, and currency in one function.
Signature
public function init(string
$gateway,
float
$amount,
string
$currency )
Parameters
$gateway
— string- Omnipay gateway short name
$amount
— float- monetary amount
$currency
— string- the currency to set
Returns
- $this
- object for chaining