PHP Classes

File: example_usage.php

Recommend this page to a friend!
  Classes of Tech Guy   Perfect Money Class   example_usage.php   Download  
File: example_usage.php
Role: Example script
Content type: text/plain
Description: example of using the class
Class: Perfect Money Class
Perform operations with money using PerfectMoney
Author: By
Last change: add withdraw example
Date: 3 years ago
Size: 401 bytes
 

Contents

Class file image Download
<?php

//place this file in the same folder with the class

// the following code will give a Array() of all the balance's !
require('./PerfectMoney.php');
$PM = new PerfectMoneyAPI("member_id", "your_account_password");
$PMbalance = $PM->getBalance();

print_r($PMbalance);

//to make a withdrawal
$result = $PM->transferFund("your_account_id","receiver_account_id","amount_to_withdraw");