<!— Modal content —>

[insert_php]

define(‘ABA_PAYWAY_API_URL’, ‘https://payway-dev.ababank.com/api/blueindigoyogasiemreap/’);

define(‘ABA_PAYWAY_API_KEY’, ‘325cc55f98a444091edf431f47b26173’);

define(‘ABA_PAYWAY_MERCHANT_ID’, ‘blueindigoyogasiemreap’);

class PayWayApiCheckout {

/**
* Returns the getHash
* For PayWay security, you must follow the way of encryption for hash.
*
* @param string $transactionId
* @param string $amount
*
* @return string getHash
*/
public static function getHash($transactionId, $amount) {
$hash = base64_encode(hash_hmac(‘sha512’, ‘blueindigoyogasiemreap’ . $transactionId . $amount, ‘325cc55f98a444091edf431f47b26173’, true));
return $hash;
}

/**
* Returns the getApiUrl
*
* @return string getApiUrl
*/
public static function getApiUrl() {
return ABA_PAYWAY_API_URL;
}
}

$transactionId = ‘1234’;

$firstName = ‘Jonh’;
$lastName = ‘Benna’;
$amount = 10;
$phone = ‘012123456’;
$email = ‘jonh.benna@gmail.com’;
[/insert_php]








<!— end Modal content—>

<!— End Popup Checkout Form —>

<!— Page Content —>

TOTAL: [insert_php] echo $amount; [/insert_php]