phpDocumentor

HubPayPalButtonSettings extends HubPayPalSettings
in package

Table of Contents

CACHE_FILE  = 'paypal2hub.json.cache'
CACHE_TTL  = 3600
$cache  : mixed
$config  : mixed
__construct()  : mixed
getButtonSettings()  : array<string|int, mixed>
Returns an array representing a PayPal Smart Buttons configuration.
getECMButtonSettings()  : mixed
userConsentGiven()  : mixed
getJavascriptSource()  : mixed
getJavascriptSourceFromCache()  : mixed
getJavascriptSourceFromHub()  : mixed
setJavascriptSourceInCache()  : mixed

Constants

Properties

Methods

getButtonSettings()

Returns an array representing a PayPal Smart Buttons configuration.

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

getJavascriptSource()

protected getJavascriptSource([mixed $position = 'cart' ]) : mixed
Parameters
$position : mixed = 'cart'
Return values
mixed

getJavascriptSourceFromCache()

protected getJavascriptSourceFromCache(mixed $cacheKey) : mixed
Parameters
$cacheKey : mixed
Return values
mixed

getJavascriptSourceFromHub()

protected getJavascriptSourceFromHub([mixed $position = 'cart' ]) : mixed
Parameters
$position : mixed = 'cart'
Return values
mixed

setJavascriptSourceInCache()

protected setJavascriptSourceInCache(mixed $cacheKey, mixed $jssrc) : mixed
Parameters
$cacheKey : mixed
$jssrc : mixed
Return values
mixed

Search results