check

Cancel all One Click Token (oneClickTokenCancelAll)

PHP SDK

$config = new \BigFish\PaymentGateway\Config();

$config->storeName = $data['storeName'];
$config->apiKey = $data['apiKey'];
$config->testMode = true; // Set to false in production environment

\BigFish\PaymentGateway::setConfig($config);

/**
 * Cancel all One Click token (Borgun2, OTPSimple, Virpay):
 * set provider name and registered user ID
 */

$oneClickTokenCancelAllResponse = \BigFish\PaymentGateway::oneClickTokenCancelAll(
new \BigFish\PaymentGateway\Request\OneClickTokenCancelAll($data['providerName'], $data['userId'])
);

REST API


Test URL: https://test.paymentgateway.hu/api/rest/

Production URL: https://www.paymentgateway.hu/api/rest/


HTTP Basic Authentication:

Send base64 encoded StoreName and ApiKey in HTTP Header.

Example:

Authorization: Basic c2RrX3Rlc3Q6ODZhZjMtODBlNGYtZjgyMjgtOTQ5OGYtOTEwYWQ=

Where the c2RrX3Rlc3Q6ODZhZjMtODBlNGYtZjgyMjgtOTQ5OGYtOTEwYWQ= string equal in PHP:

base64_encode("sdk_test:86af3-80e4f-f8228-9498f-910ad");


Cancel all One Click Token (Borgun2, OTPSimple, Virpay):

Required data (HTTP POST):

method = OneClickTokenCancelAll
json = {json encoded variable}

Parameters (* if necessary):

StoreName*
ProviderName*
UserId*

Example:

method=OneClickTokenCancelAll&json={"StoreName":"sdk_test","ProviderName":"OTPSimple","UserId":"USER-ID"}

Response data (JSON format):

ResultCode
ResultData
ResultMessage