LLMS_Payment_Gateways::get_default_gateway()
Retrieves the default payment gateway ID.
Description Description
The default gateway is the first gateway in the list of enabled gateways.
Return Return
(string)
Source Source
File: includes/class.llms.payment.gateways.php
public function get_default_gateway() {
$gateways = $this->get_enabled_payment_gateways();
$ids = array_keys( $gateways );
return array_shift( $ids );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |