WC_Smartum_Gateway_Handler
in package
handle the smartum api redirect
Table of Contents
- $gateway : mixed
- __construct() : mixed
- add action for handling the response
- handle_order() : mixed
- check if response was valid and update order
- jwt_is_valid() : bool
- validate the jwt token
Properties
$gateway
private
mixed
$gateway
=
ull
Methods
__construct()
add action for handling the response
public
__construct(WC_Smartum_Gateway $gateway) : mixed
Parameters
- $gateway : WC_Smartum_Gateway
-
The gateway
Return values
mixed —handle_order()
check if response was valid and update order
public
handle_order(int $id) : mixed
Parameters
- $id : int
-
Order id
Return values
mixed —jwt_is_valid()
validate the jwt token
private
jwt_is_valid(string $jwt) : bool
Parameters
- $jwt : string
-
The jwt token
Return values
bool —Whether jwt token is valid or not