EPG PHP SDK
Loading...
Searching...
No Matches
CreateAuthTokenRequest Class Reference

Public Member Functions

 initAuthTokentRequest (int $merchantId, int $productId, string $merchantKey, array $otherConfigurations, null|bool $production, null|string $baseUrl)
 Initializes an authentication token request with necessary parameters.
 
 requestCurl (string $url, string $requestJson, array $headers)
 
 sendRequest ()
 Sends the authentication token request to the server.
 
 getOtherConfigurations ()
 Gets the payment request data.
 
 getResponse ()
 Retrieves the response of the refund request.
 

Public Attributes

int $merchantId = null
 
string $merchantPassword = ''
 
string $httpQuery = ''
 
string $formattedRequest = null
 
string $iv = null
 
string $base64Iv = null
 
string $encryptedRequest = null
 
string $signature = null
 
string $redirectUrl = null
 
null string bool $response = null
 
string $merchantKey = null
 
int $productId = null
 
string $authToken = null
 

Member Function Documentation

◆ getOtherConfigurations()

getOtherConfigurations ( )

Gets the payment request data.

Returns
array Returns payment request data array.

◆ getResponse()

getResponse ( )

Retrieves the response of the refund request.

Returns
Response|null The response or null if not set.

◆ initAuthTokentRequest()

initAuthTokentRequest ( int  $merchantId,
int  $productId,
string  $merchantKey,
array  $otherConfigurations,
null|bool  $production,
null|string  $baseUrl 
)

Initializes an authentication token request with necessary parameters.

Parameters
int$merchantIdMerchant ID.
int$productIdProduct ID.
string$merchantKeyMerchant key.
array$otherConfigurationsAdditional configurations.
null | bool$productionProduction mode flag.
null | string$baseUrlBase URL for the request.

◆ requestCurl()

requestCurl ( string  $url,
string  $requestJson,
array  $headers 
)

◆ sendRequest()

sendRequest ( )

Sends the authentication token request to the server.

Returns
bool True if the request was successful, false otherwise.
Exceptions
NetworkExceptionIf a network error occurs during the request.

Member Data Documentation

◆ $authToken

string $authToken = null

◆ $base64Iv

string $base64Iv = null

◆ $encryptedRequest

string $encryptedRequest = null

◆ $formattedRequest

string $formattedRequest = null

◆ $httpQuery

string $httpQuery = ''

◆ $iv

string $iv = null

◆ $merchantId

int $merchantId = null

◆ $merchantKey

string $merchantKey = null

◆ $merchantPassword

string $merchantPassword = ''

◆ $productId

int $productId = null

◆ $redirectUrl

string $redirectUrl = null

◆ $response

null string bool $response = null

◆ $signature

string $signature = null

The documentation for this class was generated from the following file: