define ("MERCHANT_NUMBER", "xxxxxxx"); //cislo obchodnika pridelene bankou / merchant number given by bank define ("PRIVATE_KEY", "./key/test_key.pem"); //cesta k soukromemu klici obchodnika / path to merchant private key define ("PRIVATE_KEY_PSW", "111111"); //heslo k soukromemu klici obchodnika / password for merchant private key define ("PUBLIC_KEY", "./key/test_cert.pem"); //cesta k verejnemu klici obchodnika / path to merchant public key define ("PUBLIC_GP_KEY", "./key/gpe.signing_test.pem"); //cesta k verejnemu klici GPE / path to GPE public key define ("SAVE_SIGNATURE_TO_FILE", true); //ulozit vypocteny podpis do souboru / save digest to file //cesta k souboru podpisu, hodnota je interpretovana pomoci PHP funkce strftime(), hodnota @ORDERID@ bude nahrazena cislem objednavky //soubor je pri kazdem vypoctu prepsan //path to digest file, PHP function strftime() is used, value @ORDERID@ will be replaced by ORDERNUMBER //file is overwriten with new request //define ("SAVE_SIGNATURE_FILE_PATH", "./sign/signature.@ORDERID@.%Y%m%d_%H%M%S.sign"); define ("SAVE_SIGNATURE_FILE_PATH", "./sign/signature.sign"); //cesta k souboru URLEncoded podpisu, hodnota je interpretovana pomoci PHP funkce strftime(), hodnota @ORDERID@ bude nahrazena cislem objednavky //soubor je pri kazdem vypoctu prepsan //path to digest URLEncoded file, PHP function strftime() is used, value @ORDERID@ will be replaced by ORDERNUMBER //file is overwriten with new request //define ("SAVE_SIGNATURE_FILE_PATH_ENCODED", "./sign/signatureEnc.@ORDERID@.%Y%m%d_%H%M%S.sign"); define ("SAVE_SIGNATURE_FILE_PATH_ENCODED", "./sign/signatureEnc.sign"); //URL pro zalozeni nove objednavky / URL for creating new order define ("GP_URL", "https://test.3dsecure.gpwebpay.com/pgw/order.do"); ?>
|
|||
|
Demo GP webpay
switch ($action){
case "verify":
require_once "demo_verify.php";
break;
case "sign":
require_once "demo_sign.php";
break;
case "shop":
require_once "demo_shop.php";
break;
case "shopMps":
require_once "demo_shopMps.php";
break;
case "payment":
require_once "demo_payment.php";
break;
case "response":
case "responseMps":
require_once "demo_response.php";
break;
default:
require_once "demo_warning.php";
break;
}
?>
|