Пример #1
0
 function confirmation()
 {
     global $language;
     include DIR_FS_CATALOG . 'includes/languages/' . $language . '/modules/payment/moneybookers.php';
     parent::confirmation();
 }
Пример #2
0
 function confirmation()
 {
     include DIR_FS_CATALOG . 'includes/languages/' . $_SESSION['language'] . '/modules/payment/moneybookers.php';
     parent::confirmation();
 }
require '../includes/modules/payment/moneybookers.php';
$action = isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '';
$pass = false;
switch ($action) {
    case 'verifyEmail':
        $mb = new moneybookers();
        $result = $mb->sendTransactionToGateway('https://www.moneybookers.com/app/email_check.pl', 'email=' . $HTTP_POST_VARS['mb_email'] . '&cust_id=2167348&password=281f2d9f44066eab75db5afb063952b1');
        $result = explode(',', $result, 2);
        if (sizeof($result) == 2 && $result[0] == 'OK') {
            $pass = true;
            $email_body = 'Store Name: ' . STORE_NAME . ' (powered by osCommerce Online Merchant (' . $mb->signature . '))' . "\n" . 'Merchant Name: ' . STORE_OWNER . "\n" . 'Moneybookers E-Mail Address: ' . $HTTP_POST_VARS['mb_email'] . "\n" . 'Moneybookers Customer ID: ' . $result[1] . "\n" . 'Store URL: ' . tep_catalog_href_link() . "\n" . 'Language: ' . $language . "\n";
            tep_mail('', '*****@*****.**', 'Quick Checkout Account Activation', $email_body, '', $HTTP_POST_VARS['mb_email']);
        }
        break;
    case 'testSecretWord':
        $mb = new moneybookers();
        $result = $mb->sendTransactionToGateway('https://www.moneybookers.com/app/secret_word_check.pl', 'email=' . MODULE_PAYMENT_MONEYBOOKERS_PAY_TO . '&secret=' . md5('281f2d9f44066eab75db5afb063952b1' . md5(MODULE_PAYMENT_MONEYBOOKERS_SECRET_WORD)) . '&cust_id=2167348');
        if ($result == 'OK') {
            $pass = true;
        }
        break;
    case 'coreRequired':
        break;
    default:
        $action = 'verifyEmail';
        break;
}
require 'includes/template_top.php';
?>

    <table border="0" width="100%" cellspacing="0" cellpadding="2">