Exemplo n.º 1
0
<ul>
	<li> 
		<a href="<?php 
    echo MM_ModuleUtils::getUrl($crntPage, MM_MODULE_ACTIVITY_LOG);
    ?>
" class='<?php 
    echo $module == MM_MODULE_ACTIVITY_LOG ? "active" : "";
    ?>
'>
			<i class="fa fa-list"></i>
			Activity Log
		</a>
	</li>
	
	<?php 
    $paypalService = MM_PaymentServiceFactory::getPaymentService(MM_PaymentService::$PAYPAL_SERVICE_TOKEN);
    if ($paypalService->isActive()) {
        ?>
	<li> 
		<a href="<?php 
        echo MM_ModuleUtils::getUrl($crntPage, MM_MODULE_PAYPAL_IPN_LOG);
        ?>
" class='<?php 
        echo $module == MM_MODULE_PAYPAL_IPN_LOG ? "active" : "";
        ?>
'>
			<i class="fa fa-paypal"></i>
			PayPal IPN Log
		</a>
	</li>
	<?php 
Exemplo n.º 2
0
<?php

/**
 * 
 * MemberMouse(TM) (http://www.membermouse.com)
 * (c) MemberMouse, LLC. All rights reserved.
 */
$limeLightProduct = new MM_LimeLightProduct($p->id);
$limeLightService = MM_PaymentServiceFactory::getPaymentService(MM_PaymentService::$LIMELIGHT_SERVICE_TOKEN);
?>
<div id="mm-form-container">
	<table cellspacing="10">
		<tr>
			<td width="150">MemberMouse Product</td>
			<td>
				<select name='mm_product_id' id='mm_product_id' onchange="mmjs.getMMProductDescription();">
				<?php 
$unmappedProducts = MM_LimeLightProduct::getUnmappedProducts();
// add currently selected product
if ($limeLightProduct->isValid()) {
    $product = new MM_Product($limeLightProduct->getMMProductId());
    if ($product->isValid()) {
        $unmappedProducts[$limeLightProduct->getMMProductId()] = $product->getName();
    }
}
echo MM_HtmlUtils::generateSelectionsList($unmappedProducts, $limeLightProduct->getMMProductId());
?>
				</select>
				
				<div id="mm_product_description" style="margin-top:10px;"></div>
			</td>
Exemplo n.º 3
0
Arquivo: x.php Projeto: huynp/Critical
 * (c) MemberMouse, LLC. All rights reserved.
 * 
 * This script processes payment notifications/callbacks from payment service providers, and routes these messages to the appropriate services
 * A url parameter "service" is expected, with the value containing the token identifier for the service the message is intended for
 * For example, a PayPal IPN notification is expected to be received at http://<sitename>/wp-content/plugins/membermouse/x.php?service=paypal
 * 
 * The placement and name of this script are intended to keep the url as small as possible, under the circumstances
 * 
 */
require_once "../../../wp-load.php";
require_once "includes/mm-constants.php";
require_once "includes/init.php";
$request = isset($_POST) ? $_POST : array();
if (isset($_GET['service']) || isset($_POST['service'])) {
    $serviceToken = isset($_GET['service']) ? strtoupper($_GET['service']) : strtoupper($_POST['service']);
    $service = MM_PaymentServiceFactory::getPaymentService($serviceToken);
    $response = !is_null($service) ? $service->processNotification($request) : new MM_PaymentServiceResponse("Improper notification format received", MM_PaymentServiceResponse::$ERROR);
} else {
    //unspecified service (which means improper remote setup), see if there is a default payment service that can/will handle it
    $serviceArray = MM_PaymentServiceFactory::getPaymentServicesArray();
    if (count($serviceArray) == 1) {
        $service = array_pop($serviceArray);
        $response = $service->processNotification($request);
    } else {
        $response = new MM_PaymentServiceResponse("Improper notification format received", MM_PaymentServiceResponse::$ERROR);
    }
}
//echo the response to caller
$responseMsg = $response->getMessage();
if (!empty($responseMsg)) {
    echo $responseMsg;
Exemplo n.º 4
0
							<?php 
    echo $testService->displayConfigOptions();
    ?>
						</div>
					</td>
				</tr>
			</table>
			<?php 
}
?>
			
			<p class="mm-section-header">Onsite Payment Method</p>
			
			<?php 
if (class_exists("MM_TestPaymentService") && MM_TestPaymentService::isSiteUsingTestService()) {
    $testPymtService = MM_PaymentServiceFactory::getPaymentService(MM_PaymentService::$TEST_SERVICE_TOKEN);
    if ($testPymtService->getMode() == MM_TestPaymentService::$MODE_ALWAYS_OVERRIDE) {
        ?>
			<p style="font-size:11px;">
			<?php 
        echo MM_Utils::getIcon('warning', 'red', '1.3em', '2px');
        ?>
 <em>Currently the test payment service is enabled and configured to always 
			be used as the onsite payment method. While the test payment service is configured this way the onsite payment method activated in this section
			will not be used.</em></p>
			<?php 
    }
}
?>
			
			<p id="mm-https-notice" style="font-size:11px; display:none;">