Sign is a digital signature for verifying the authenticity of digital messages or documents. Only a valid API's sign can be interact with PAYON's server.
<?phprequire_once('CheckoutURIBuilder.php'); $lang ="en"; $merchantId ="YOUR MERCHANT ID"; $termId ="YOUR TERM ID"; $amount ="YOUR CHECK OUT AMOUNT"; $txId ="YOUR TRANSACTION ID"; $currency ="YOUR CURRENCY"; $apiKey ="YOUR API KEY"; $checkoutURIBuilder = new CheckoutURIBuilder($lang, $merchantId, $termId, $txId, $amount, $currency, $redirectUri, $apiKey);
$env =newEnvironment();// get test url function $env::getTestUrl() and get real url function $env::getRealUrl() $url = $checkoutURIBuilder::toCheckoutUrlString($env::getTestUrl());echo"<a href='".$url."'>Click to Pay</a><br/>";?>