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: 1 year ago
Size: 401 bytes


Class file image Download

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

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


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