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

Public Member Functions

 initChargeRequest (int $merchantId, int $productId, ?string $merchantKey, array $otherConfigurations, bool|null $production, string|null $baseUrl)
 Initializes a charge request with necessary parameters.
 
 getOtherConfigurations ()
 Gets the payment request data.
 
 getResponse ()
 Retrieves the response of the 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
 
null string bool $response = null
 
string $merchantKey = null
 
int $productId = 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 Charge request.

Returns
Response|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 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.

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

null string bool $response = null

◆ $signature

string $signature = null

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