LLMS_Payment_Gateways::get_gateway_by_id( string $id )
Retrieve a payment gateway object by the payment gateway ID
Description Description
Parameters Parameters
- $id
-
(string) (Required) id of the gateway (paypal, stripe, etc...)
Return Return
(mixed) instance of the gateway object OR false
Source Source
File: includes/class.llms.payment.gateways.php
function get_gateway_by_id( $id ) { $gateways = $this->get_payment_gateways(); if ( array_key_exists( $id, $gateways ) ) { return $gateways[ $id ]; } return false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |