GambioHubPayment
extends GambioHubPayment_parent
in package
Class GambioHubPayment
This overload will fetch the allowed Gambio Hub modules for the payment page.
Table of Contents
- SESSION_MAX_AGE = 3300
- Maximum age of a Gambio Hub session in seconds
- $allowedPaymentModules : array<string|int, mixed>
- $cashModuleCode : string
- $cashOnDeliveryModuleCode : string
- $invoiceModuleCode : string
- $moneyOrderModuleCode : string
- selection() : array<string|int, mixed>
- Module selection method overload.
- _getAllowedPaymentModules() : array<string|int, mixed>
- Returns the allowed payment modules using a helper method.
- _getHubPaymentModules() : array<string|int, mixed>
- Returns the allowed payment modules.
- _getUnallowedModuleCodes() : array<string|int, mixed>
- _isMissingRequiredCustomerOrders() : bool
- Checks whether the customer has the required orders count for invoices.
- extractSubmodules() : mixed
- insertExtraData() : mixed
- removeForbiddenMethodsForDownloads() : array<string|int, mixed>
- stripSubmodules() : mixed
- _getCashOnDeliveryFee() : string
- Returns cash on delivery fee
Constants
SESSION_MAX_AGE
Maximum age of a Gambio Hub session in seconds
public
mixed
SESSION_MAX_AGE
= 3300
Properties
$allowedPaymentModules
protected
array<string|int, mixed>
$allowedPaymentModules
$cashModuleCode
protected
string
$cashModuleCode
= 'CashHub'
$cashOnDeliveryModuleCode
protected
string
$cashOnDeliveryModuleCode
= 'CashOnDeliveryHub'
$invoiceModuleCode
protected
string
$invoiceModuleCode
= 'InvoiceHub'
$moneyOrderModuleCode
protected
string
$moneyOrderModuleCode
= 'MoneyOrderHub'
Methods
selection()
Module selection method overload.
public
selection() : array<string|int, mixed>
This method will fetch the allowed payment module from Gambio Hub and will display them in the order process module listing.
Return values
array<string|int, mixed> —_getAllowedPaymentModules()
Returns the allowed payment modules using a helper method.
protected
_getAllowedPaymentModules() : array<string|int, mixed>
Return values
array<string|int, mixed> —_getHubPaymentModules()
Returns the allowed payment modules.
protected
_getHubPaymentModules() : array<string|int, mixed>
Return values
array<string|int, mixed> —_getUnallowedModuleCodes()
protected
_getUnallowedModuleCodes() : array<string|int, mixed>
Return values
array<string|int, mixed> —_isMissingRequiredCustomerOrders()
Checks whether the customer has the required orders count for invoices.
protected
_isMissingRequiredCustomerOrders() : bool
Return values
bool —extractSubmodules()
protected
extractSubmodules(mixed $description) : mixed
Parameters
- $description : mixed
Return values
mixed —insertExtraData()
protected
insertExtraData(mixed $description[, mixed $extraDataPlaceholder = '<span class="extradata"></span>' ]) : mixed
Parameters
- $description : mixed
- $extraDataPlaceholder : mixed = '<span class="extradata"></span>'
Return values
mixed —removeForbiddenMethodsForDownloads()
protected
removeForbiddenMethodsForDownloads(array<string|int, mixed> $selectionArray) : array<string|int, mixed>
Parameters
- $selectionArray : array<string|int, mixed>
Return values
array<string|int, mixed> —stripSubmodules()
protected
stripSubmodules(mixed $description) : mixed
Parameters
- $description : mixed
Return values
mixed —_getCashOnDeliveryFee()
Returns cash on delivery fee
private
_getCashOnDeliveryFee(array<string|int, mixed> $module, order $order) : string
Parameters
- $module : array<string|int, mixed>
- $order : order