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

Public Member Functions

 setMerchantId (string $merchantId)
 Sets the Merchant ID for payment transactions.
 
 setMerchantPassword (string $merchantPassword)
 Sets the Merchant Password for authentication.
 
 setMerchantKey (string $merchantKey)
 Sets the Merchant Key for additional security.
 
 getMerchantKey ()
 Retrieves the Merchant Key.
 
 setProductId (int $productId)
 Sets the Product ID for the transaction.
 
 setEnvironment (Environment $env)
 Toggles the production mode.
 
 getEnvironment ()
 
 getMerchantId ()
 
 getMerchantPassword ()
 
 getProductId ()
 
 getConfig ()
 

Member Function Documentation

◆ getConfig()

getConfig ( )

◆ getEnvironment()

getEnvironment ( )

◆ getMerchantId()

getMerchantId ( )

◆ getMerchantKey()

getMerchantKey ( )

Retrieves the Merchant Key.

Returns
string Returns the Merchant Key.

◆ getMerchantPassword()

getMerchantPassword ( )

◆ getProductId()

getProductId ( )

◆ setEnvironment()

setEnvironment ( Environment  $env)

Toggles the production mode.

Parameters
Environment$envTrue for production mode, false for testing.
Returns
self Returns the instance of the class for method chaining.

◆ setMerchantId()

setMerchantId ( string  $merchantId)

Sets the Merchant ID for payment transactions.

This ID is unique to each merchant and is used to identify them in transactions.

Parameters
string$merchantIdThe Merchant ID.
Returns
self Returns the instance of the class for method chaining.

◆ setMerchantKey()

setMerchantKey ( string  $merchantKey)

Sets the Merchant Key for additional security.

This key is a part of the security credentials used for processing transactions.

Parameters
string$merchantKeyThe Merchant Key.
Returns
self Returns the instance of the class for method chaining.

◆ setMerchantPassword()

setMerchantPassword ( string  $merchantPassword)

Sets the Merchant Password for authentication.

This password is used alongside the Merchant ID for secure authentication during transactions.

Parameters
string$merchantPasswordThe Merchant Password.
Returns
self Returns the instance of the class for method chaining.

◆ setProductId()

setProductId ( int  $productId)

Sets the Product ID for the transaction.

This ID is used to specify and identify the product involved in the transaction.

Parameters
int$productIdThe Product ID.
Returns
self Returns the instance of the class for method chaining.

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