Commit deb6afc7 authored by GiorgosK's avatar GiorgosK

Mock paycenter.php gets action domain automatically from referrer

parent c8353246
......@@ -3,6 +3,11 @@
/**
* @file
*/
$scheme = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_SCHEME);
$referrer = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST);
$domain = $scheme . "://" . $referrer;
?>
<!DOCTYPE html>
......@@ -24,7 +29,7 @@ foreach ($_REQUEST as $key => $value) {
</div>
<h1>Will Send</h1>
<form action="http://drukick.test/commerce_winbank_redirect/callback" method="post">
<form action="<?php echo $domain ?>/commerce_winbank_redirect/callback" method="post">
SupportReferenceID: <input type="text" name="SupportReferenceID" value="1001"><br/>
ResultCode: <select name="ResultCode" id="">
<option selected="selected" value="0">0 Good</option>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment