LLMS_Payment_Gateways::get_gateway_by_id( string $id )

Retrieves a payment gateway object by the gateway ID.

Parameters Parameters


(string) (Required) id of the gateway (paypal, stripe, etc...)

Top ↑

Return Return

(LLMS_Payment_Gateway|boolean) Returns the gateway if it's registered, otherwise false.

Top ↑

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;


Top ↑

Changelog Changelog

Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.