Login   Register  
PHP Classes

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: 2 years ago
Size: 641 bytes


Class file image Download
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';
$_POST['send']) {
$parspal->Price 100;

<form method="post" action="">
    <input type="submit" name="send" value="Payment!"/>