<?php
require_once(__DIR__."/QueryBuilder.php");
$queryBuilder = new QueryBuilder($conn);
$translationMsgArr = $queryBuilder->select('traslation_message');
$translationMsg = array();
foreach($translationMsgArr as $key => $value){
	$translationMsg[$value["tranlation_key"]] = $value["tranlation_value"];
}
if(!isset($translationMsg['TRANSACTION_ERROR']))
{
	$translationMsg['TRANSACTION_ERROR'] = 'Unfortunately, your transaction could not be processed. Please try again later.';
}
if(!isset($translationMsg['PAYMENT_GATEWAY_SERVER_ERROR']))
{
	$translationMsg['PAYMENT_GATEWAY_SERVER_ERROR'] = 'Unfortunately, your transaction could not be processed. Please try again later.Payment Gateway server getting a issue.';
}
if(!isset($translationMsg['SERVER_ERROR']))
{
	$translationMsg['SERVER_ERROR'] = 'Unfortunately, Your transaction could not be processed because server not responding. Please try again.';
}
if(!isset($translationMsg['MERCHANT_DETAILS_NOT_CONFIGURED']))
{
	$translationMsg['MERCHANT_DETAILS_NOT_CONFIGURED'] = 'Unfortunately, your transaction could not be processed. Please contact to Admin.';
}
if(!isset($translationMsg['TRANSACTION_DATA_NOT_FOUND']))
{
	$translationMsg['TRANSACTION_DATA_NOT_FOUND'] = 'Unfortunately, your transaction details not found. Please contact to Admin.';
}
if(!isset($translationMsg['INVALID_TRANSACTION_ID']))
{
	$translationMsg['INVALID_TRANSACTION_ID'] = 'Invalid Transaction. Please try again';
}
if(!isset($translationMsg['TRANSACTION_SUCCESS_RECEIPT_GENERATED']))
{
	$translationMsg['TRANSACTION_SUCCESS_RECEIPT_GENERATED'] = 'Fee Payment is successful !!!.<br /><br />Thank you for the payment. Your Transaction id is [TRANSACTION_ID].<br /> Please close the window.';
}
if(!isset($translationMsg['TRANSACTION_SUCCESS_RECEIPT_NOT_GENERATED']))
{
	$translationMsg['TRANSACTION_SUCCESS_RECEIPT_NOT_GENERATED'] = 'Your transaction is successful, but a receipt is not generated.<br /><br /> Please note your Transaction Id [TRANSACTION_ID] and contact institute administrator';
}
if(!isset($translationMsg['TRANSACTION_SUCCESS_RECEIPT_ALREAD_GENERATED']))
{
	$translationMsg['TRANSACTION_SUCCESS_RECEIPT_ALREAD_GENERATED'] = 'Your transaction is successful and receipt is already generated.<br /><br /> Please note your Transaction Id [TRANSACTION_ID].';
}
if(!isset($translationMsg['GO_TO_Home_Page']))
{
	$translationMsg['GO_TO_Home_Page'] = 'Go to Home Page';
}
if(!isset($translationMsg['TRANSACTION_SUCCESS_ENROLLEMENT_INPROGRESS']))
{
	$translationMsg['TRANSACTION_SUCCESS_ENROLLEMENT_INPROGRESS'] = 'Thank you for your payment. Your Transaction ID is [TRANSACTION_ID]. Please check your enrollment after sometime. <br /> Please close the window.';
}
if(!isset($translationMsg['TXN_ID_ALREADY_GENERATED']))
{
	$translationMsg['TXN_ID_ALREADY_GENERATED'] = 'This transaction details already exist. please try again.';
}
// new Added
if(!isset($translationMsg['INVALID_PAYMENT_GATEWAY_SELECTED']))
{
	$translationMsg['INVALID_PAYMENT_GATEWAY_SELECTED'] = 'Invalid payment gateway selected.';
}
if(!isset($translationMsg['PROCEED_WITH_PAYMENT']))
{
	$translationMsg['PROCEED_WITH_PAYMENT'] = 'Proceed with Payment';
}
if(!isset($translationMsg['TRANSACTION_ALREADY_PROCESSED']))
{
	$translationMsg['TRANSACTION_ALREADY_PROCESSED'] = 'This transaction has already been processed. Please do not submit the same payment again.';
}
if(!isset($translationMsg['TRANSACTION_NOT_SUCCESS']))
{
	$translationMsg['TRANSACTION_NOT_SUCCESS'] = 'Unfortunately, Your transaction could not be processed , your Order Status is [ORDER_STATUS].';
}
if(!isset($translationMsg['TRANSACTION_SUCCESS_RECEIPT_GENERATED_REGISTRATION']))
{
	$translationMsg['TRANSACTION_SUCCESS_RECEIPT_GENERATED_REGISTRATION'] = 'Thank you for payment. <br />Your Course successfully enrolled.Your Transaction id is [TRANSACTION_ID].<br /> Please close the window.';
}
if(!isset($translationMsg['PAYMENT_PROCESSED_GENERIC']))
{
	$translationMsg['PAYMENT_PROCESSED_GENERIC'] = 'Thank you! Your payment request has been processed. You will receive a confirmation shortly.<br /> Please close the window.';
}
if(!isset($translationMsg['INVALID_PAYMENT_GATEWAY_CONFIGURATION']))
{
	$translationMsg['INVALID_PAYMENT_GATEWAY_CONFIGURATION'] = 'Unfortunately, Your transaction could not be processed. Invalid gateway configuration.';
}
if(!isset($translationMsg['PAYMENT_ERROR']))
{
	$translationMsg['PAYMENT_ERROR'] = '<h4>Payment Error</h4>
										<p>An error occurred while processing your payment. Please try again or contact the administrator.</p>
										<p>Reference: <strong>[REFERENCE]</strong></p>';
}
if(!isset($translationMsg['CURRENCY_NOT_SUPPORTED']))
{
	$translationMsg['CURRENCY_NOT_SUPPORTED'] = 'Unfortunately, Your transaction could not be processed , Due to currency not supported.Please contact to Admin.';
}
if(!isset($translationMsg['PAY_NOW']))
{
	$translationMsg['PAY_NOW'] = 'Pay Now';
}
if(!isset($translationMsg['EMI_PROCESSED']))
{
	$translationMsg['EMI_PROCESSED'] = 'Thank you! Your EMI application has been submitted successfully via Grayquest. <br/> Our team will get in touch with you shortly.<br/>Your Reference id is [REFERENCE_ID]';
}


define("TRANSLATION_MSG", json_encode($translationMsg));