Blesta Source Documentation

Gateways extends Component

Factory class for creating Gateway objects

Table of Contents

Properties

$components
$helpers
$models
$gw_types

Methods

__construct()
create() Creates and returns an instance of the given gateway
Properties

$gw_types

private static array<string|int, mixed> $gw_types = ['merchant', 'nonmerchant']

The types of Gateways supported

Methods

create()

Creates and returns an instance of the given gateway

public static create(string $gw_name, string $type) : object
Parameters
$gw_name : string

The name of the Gateway to load

$type : string

The type of gateway to load. Accepted types are listed in Gateways::$gw_name

Tags
throws
Exception

Thrown if the $type is not recognized or the gateway requested does not exist, or does not inherit from the appropriate parent.

Return values
object —

An instance of the requested Gateway

Tags
subpackage

components.gateways

copyright

Copyright (c) 2010, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results