\FAA\Plugin\PayPalHandler

Summary

Methods
Properties
Constants
SetupTemplate()
RegisterHooks()
RequestOnUrlParsed()
ServeRequest()
CallReturn()
CallCancel()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
Request()
$req
$config
N/A

Properties

$req

$req : \FAA\Obj\Request

Store request

Holds the request object instance

Type

\FAA\Obj\Request — A system request instance

$config

$config : \stdClass

Store configuration

Holds the configuration object instance

Type

\stdClass — A simple object

Methods

SetupTemplate()

SetupTemplate(null  $data = null) : \FAA\Obj\Result

Getter and setter for config data

When no data is given it will read otherwise write. This method is cached by setup handler

Parameters

null $data

Returns

\FAA\Obj\Result

RegisterHooks()

RegisterHooks() : array

Register system hooks Register a set of handler functions to be called in certain positions.

Returns

array —

A list of hooks to register

RequestOnUrlParsed()

RequestOnUrlParsed(  $param) : void

Must parse the url in an hook

Parameters

$param

ServeRequest()

ServeRequest(\FAA\Obj\Request  $request) : \FAA\Obj\Response

Serve request Serve the request and return appropriate result.

Serve the request and return appropriate result.

Parameters

\FAA\Obj\Request $request

The http request object

Returns

\FAA\Obj\Response

A response object

CallReturn()

CallReturn() : \FAA\Obj\Response

Return call from PayPal This end point is called on return from PayPal payment page

Returns

\FAA\Obj\Response

A system response object

CallCancel()

CallCancel() : \FAA\Obj\Response

Finish reset When the payment was aborted in PayPal

Returns

\FAA\Obj\Response

A system response object

Request()

Request() : \FAA\Obj\Request

Get request Get the stored request object of the http call.

Returns

\FAA\Obj\Request

The request object