LLMS_Payment_Gateways::get_gateway_by_id( string $id )
Retrieves a payment gateway object by the gateway ID.
Parameters Parameters
- $id
-
(string) (Required) id of the gateway (paypal, stripe, etc...)
Return Return
(LLMS_Payment_Gateway|boolean) Returns the gateway if it's registered, otherwise false
.
Source Source
File: includes/class.llms.payment.gateways.php
public 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. |