<?php

//include the DAL library to use the model layer methods
include '../class.money_mlm.php';
//creating object of DAL
$manageMoney = new money_mlm();
/*taking as constant value*/
$product_id = "P_1002";
$membership_id = "member528fc31c71754";
$quantity = "3";
$manageMoney->moneyCalculationForMemberProduct($membership_id, $product_id, $quantity);
<?php

session_start();
//include the DAL library for the method to insert the details
include '../../../v-includes/class.money_mlm.php';
$manageMoney = new money_mlm();
//taking the values from url
$order_id = $_GET['o_id'];
if (!empty($order_id)) {
    //calling method for money distribution
    $result = $manageMoney->distributeMoneyByMyAccount($order_id);
}
header("Location: ../../finalConfirmationByAccount.php");
Exemplo n.º 3
0
<?php

session_start();
//include money_mlm to distribute money details among the parents
include 'v-includes/class.money_mlm.php';
$manageMoney = new money_mlm();
include 'v-includes/class.mail.php';
$mailsent = new Mail();
$page_title = '';
if (!isset($_SESSION['memberId'])) {
    $_SESSION['guestId'] = 'guest';
}
if (isset($GLOBALS['_GET'])) {
    $membership_id = $_GET['m_id'];
    $total_price = $_GET['total_price'];
    $order_id = $_GET['order_id'];
}
//insert values to purchase table
$result = $manageMoney->insertPaypalPayment($order_id, $total_price, $membership_id);
//inserting credited amount in money transfer log
//$money = $manageMoney->insertCreditAmounts($membership_id);
//distribute money to parents
/*if($membership_id != 'guest' && substr($membership_id,0,6) == 'member')
		{
			$distribute = $manageMoney->distributeMoneyPaypal($membership_id);
		}*/
//getting product details for mailing
$product_list = $manageMoney->getProductDetailsForPaypal($order_id);
//sending the mail
$mail = $mailsent->confirmationOfOrderPaypal($product_list[0], $order_id, $product_list[1], $product_list[2], $product_list[3], $product_list[4]);
//checking for invalid conditions
<?php

//include the DAL library to use the model layer methods
include '../class.money_mlm.php';
//creating object of DAL
$manageMoney = new money_mlm();
/*taking as constant value*/
$product_id = "M_1001";
$membership_id = "member528ca03d4db97";
$quantity = "1";
$manageMoney->moneyCalculationForMembershipProduct($membership_id, $product_id);
Exemplo n.º 5
0
<?php

session_start();
//include money_mlm to distribute money details among the parents
include '../class.money_mlm.php';
$manageMoney = new money_mlm();
if (isset($GLOBALS['_GET'])) {
    $membership_id = $_GET['m_id'];
    $total_price = $_GET['total_price'];
}
//taking order id from session variable
$order_id = $_SESSION['uniqueid'];
//insert values to purchase table
$result = $manageContent->insertPaypalPayment($order_id, $total_price, $membership_id);
//inserting credited amount in money transfer log
$money = $manageContent->insertCreditAmounts($membership_id);
//distribute money to parents
echo $result;
if ($membership_id != 'guest') {
    $result = $manageMoney->distributeMoneyPaypal($membership_id);
} else {
    $result = 1;
}
//header("Location: ../../thanku.php");
<?php

session_start();
//include the DAL library for the method to insert the details
include '../../../v-includes/class.money_mlm.php';
$manageMoney = new money_mlm();
//taking the values from url
$order_id = $_GET['o_id'];
if (!empty($order_id)) {
    //calling method for money distribution
    $result = $manageMoney->distributeMoneyByPaypalPayment($order_id);
}
header("Location: ../../finalConfirmationByPaypal.php");