Is3DSecureActive
Purpose
Check whether 3D Secure is active.
Mandatory
Yes, if the plugin supports 3D Secure.
Input Parameters
An associative array that contains the following values:
| Param name | Description | Type |
|---|---|---|
config
|
The plug-in configuration values saved in the Billing database. | array |
Response
An associative array that contains the following keys:
| Param name | Description | Type |
|---|---|---|
STATUS
|
(Mandatory) The method execution status. Valid values for the Auth method are:
|
string |
Example
The built-in Demo plugin supports 3D Secure if the 3dsecure configuration parameter is set to True. The code below fragment shows how this plugin implements the Is3DSecureActive method:
Copy
function Demo_Is3DSecureActive( $params ) {
if ( $params['config']['3dsecure'] ) {
return array( STATUS => STATUS_APPROVED );
}
return array( STATUS => STATUS_DECLINED );
}