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...)


Top ↑

Return Return

(mixed) instance of the gateway object OR false


Top ↑

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;

	}

Top ↑

Changelog 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.