<?php

/*****************************************************************************************************/
/*  CALL BACK CODE FROM WORLPAY : This code needs to be called from your processor upon completion */
/*****************************************************************************************************/
// $cPlugin->GetPluginVariable takes queries in the form of plugin_[pluginname]_[variable]

include_once("../../../classes/class.gateway.plugin.php");

//Get vars from post/get
$tProduct = $_POST['DoubleColonProducts'];
$aProducts = explode("::", $tProduct);
$tInvoiceID = $aProducts[2];  // return of optional variables
$tTransStatus = $_POST['Verbage'];
$lPricePaid = $aProducts[0];  //For Future Use

//Create plug in class to interact with CE
$cPlugin = new Plugin($tInvoiceID);

//Determine if payment was made
$cPlugin->PaymentAccepted($lPricePaid);
?>