\FAA\Plugin\BsPayOneHandler

Summary

Methods
Properties
Constants
SetupTemplate()
RegisterHooks()
OnAddOrUpdateContent()
OnDeleteContent()
BasketChangeStatus()
RequestOnUrlParsed()
ServeRequest()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
onReturn()
onSessionStatus()
onTransaction()
Handler()
$req
$handler
$settings
N/A

Properties

$handler

$handler :

Type

—BsPayOne

$settings

$settings :\stdClass

Type

\stdClass

Methods

SetupTemplate()

SetupTemplate(  $data = null)

Parameters

$data

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

OnAddOrUpdateContent()

OnAddOrUpdateContent(\FAA\Obj\Sys\HookArgument  $param)

Called on save an object

Parameters

\FAA\Obj\Sys\HookArgument $param

A hook argument with user and result

OnDeleteContent()

OnDeleteContent(  $param)

React on basket delete

Parameters

$param

HookArgument

BasketChangeStatus()

BasketChangeStatus(  $req)

Called on basket status change, reaction is needed on cancel

Parameters

$req

HookArgument

RequestOnUrlParsed()

RequestOnUrlParsed(\FAA\Obj\Sys\HookArgument  $param): void

Must parse the url in an hook

Parameters

\FAA\Obj\Sys\HookArgument $param

ServeRequest()

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

Serve request

Serve the request and return appropriate result.

Parameters

\FAA\Obj\Request $request

The http request object

Returns

\FAA\Obj\Response

A response object

onReturn()

onReturn(string  $status,string  $reference): \FAA\Obj\Response

On return handler

Called either on call from 3d-secure iframe end or, when paypal was used. Will be used to process the second step of the transaction

Parameters

string $status

The status from the url, can be return, success or, error

string $reference

Unique basket reference

Returns

\FAA\Obj\Response

A system response object

onSessionStatus()

onSessionStatus()

onTransaction()

onTransaction()

Handler()

Handler()