routeMethods, $this->secureRouteMethods); return in_array($method, $allGatewayMethods, true); } /** * @since 2.20.0 * * @param string $method * * @throws Exception */ public function callRouteMethod($method, $queryParams) { if ($this->supportsMethodRoute($method)) { return $this->$method($queryParams); } throw new PaymentGatewayException( sprintf( '%1$s route method is not supported by %2$s and %3$s', $method, get_class($this), get_class($this->subscriptionModule) ) ); } }