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

Class to handle Quix Charge Requests. More...

Public Member Functions

 initChargeRequest (int $merchantId, int $productId, ?string $merchantKey, array $otherConfigurations, bool|null $production, string|null $baseUrl)
 Initializes a Quix charge request with necessary parameters.
 
 requestCurl (string $url, string $requestJson, array $headers)
 
 sendRequest ()
 Sends the Quix charge request to the server.
 
 getOtherConfigurations ()
 Gets the payment request data.
 
 getResponse ()
 Retrieves the response of the Quix charge 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
 
string $merchantKey = null
 
int $productId = null
 
string $response = ''
 

Detailed Description

Class to handle Quix Charge Requests.

Member Function Documentation

◆ getOtherConfigurations()

getOtherConfigurations ( )

Gets the payment request data.

Returns
array Returns payment request data array.

◆ getResponse()

getResponse ( )

Retrieves the response of the Quix charge request.

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

◆ initChargeRequest()

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

Initializes a Quix charge request with necessary parameters.

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

◆ requestCurl()

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

◆ sendRequest()

sendRequest ( )

Sends the Quix charge 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

◆ $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

string $response = ''

◆ $signature

string $signature = null

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