<!-- Sending data for porcessing --> <form action="https://payyed.org/task/pay" method="POST" class="col-lg-12"> <?php if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') $url = "https://"; else $url = "http://"; // Append the host(domain name, ip) to the URL. $url.= $_SERVER['HTTP_HOST']; // Append the requested resource location to the URL $url.= $_SERVER['REQUEST_URI']; ?> <input type="hidden" name="siteurl" value=""> <input type="hidden" name="email" value=""> <input type="hidden" name="phone" value=""> <input type="hidden" name="title" value=""> <input type="hidden" name="price" value=""> <input type="hidden" name="currency" value=""> <input type="hidden" name="itemid" value=""> <input type="hidden" name="payyed_key" value=""> // get from your payyed <input type="hidden" name="payyed_secret" value=""> // get from your payyed <input type="hidden" name="success_url" value=""> <input type="hidden" name="failed_url" value=""> <input type="hidden" name="ipn_url" value=""> <input type="hidden" name="back_url" value=""> <button type="submit" class="btn btn-primary col-lg-12"> Pay Now </button> </form>
We send the following data to IPN url stated above (using POST method)
$_POST['order_id']
$_POST['email']
$_POST['phone']
$_POST['amount']
$_POST['currency']
$_POST['payyed_key']