Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mostafa Soufi  >  Parspal  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Parspal class
Class: Parspal
Process and verify payments with Parspal API
Author: By
Last change:
Date: 2012-06-12 09:16
Size: 641 bytes
 

Contents

Class file image Download
<?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>