Documentation

Display
in package

Class for returning available form data for this gateway

Table of Contents

Properties

$title  : string

Methods

fetchGatewayFields()  : array<string|int, mixed>
What do we want?
gatewayEnabled()  : bool
Is this enabled for new payments?
getGatewaySettings()  : array<string|int, mixed>
Return the admin settings for this gateway

Properties

$title

public string $title = 'PayPal'

Name of this payment gateway

Methods

fetchGatewayFields()

What do we want?

public fetchGatewayFields(string $unique_id, array<string|int, mixed> $sub_data, int|float $value, string $period, string $return_url) : array<string|int, mixed>

Called from Profile-Actions.php to return a unique set of fields for the given gateway plus all the standard ones for the subscription form

Parameters
$unique_id : string

The unique ID of this gateway

$sub_data : array<string|int, mixed>

Subscription data

$value : int|float

The amount of the subscription

$period : string
$return_url : string

The URL to return the user to after processing the payment

Return values
array<string|int, mixed>

An array of data for the form

gatewayEnabled()

Is this enabled for new payments?

public gatewayEnabled() : bool
Return values
bool

Whether this gateway is enabled (for PayPal, whether the PayPal email is set)

getGatewaySettings()

Return the admin settings for this gateway

public getGatewaySettings() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array of settings data


        
On this page

Search results