<?php
 
    include ('parspal.class.php');
 
    
 
    $parspal = new Parspal;
 
    
 
    $parspal->MerchantID = 'Your Merchand ID';
 
    $parspal->Password = 'Your Password';
 
    $parspal->Price = 100; // By toman
 
    $parspal->ReturnPath = 'http://localhost/example.php';
 
    $parspal->ResNumber = 123456;
 
    $parspal->Description = 'For test';
 
    $parspal->Paymenter = 'Your Name';
 
    $parspal->Email = 'Your Email';
 
    $parspal->Mobile = 'Your Mobile';
 
    
 
    if($_POST['send']) {
 
        echo $parspal->Request();
 
    }
 
    
 
    $parspal->Price = 100;
 
    echo $parspal->Verify();
 
?>
 
 
<form method="post" action="">
 
    <input type="submit" name="send" value="Payment!"/>
 
</form>
 
 |