Beispiel #1
0
*/
chdir('../../../../');
require 'includes/application_top.php';
// if the customer is not logged on, redirect them to the login page
if (!tep_session_is_registered('customer_id')) {
    $snapshot = array('page' => 'ext/modules/payment/paypal/express_uk.php', 'mode' => $request_type, 'get' => $_GET, 'post' => $_POST);
    $navigation->set_snapshot($snapshot);
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
// if there is nothing in the customers cart, redirect them to the shopping cart page
if ($cart->count_contents() < 1) {
    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}
require DIR_WS_LANGUAGES . $language . '/paypal_uk_express.php';
require 'includes/modules/payment/paypal_uk_express.php';
$paypal_uk_express = new paypal_uk_express();
if (!$paypal_uk_express->check() || !$paypal_uk_express->enabled) {
    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}
if (MODULE_PAYMENT_PAYPAL_UK_EXPRESS_TRANSACTION_SERVER == 'Live') {
    $api_url = 'https://payflowpro.verisign.com/transaction';
    $paypal_url = 'https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout';
} else {
    $api_url = 'https://pilot-payflowpro.verisign.com/transaction';
    $paypal_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout';
}
if (!tep_session_is_registered('sendto')) {
    tep_session_register('sendto');
    $sendto = $customer_default_address_id;
}
if (!tep_session_is_registered('billto')) {
Beispiel #2
0
////////////////////////////////////////////////////////////////////////////////
chdir('../../../../');
require 'includes/application_top.php';
// if the customer is not logged on, redirect them to the login page
if (!tep_session_is_registered('customer_id')) {
    $snapshot = array('page' => 'ext/modules/payment/paypal/express_uk.php', 'mode' => $request_type, 'get' => $HTTP_GET_VARS, 'post' => $HTTP_POST_VARS);
    $navigation->set_snapshot($snapshot);
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
// if there is nothing in the customers cart, redirect them to the shopping cart page
if ($cart->count_contents() < 1) {
    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}
require DIR_WS_LANGUAGES . $language . '/modules/payment/paypal_uk_express.php';
require 'includes/modules/payment/paypal_uk_express.php';
$paypal_uk_express = new paypal_uk_express();
if (!$paypal_uk_express->check() || !$paypal_uk_express->enabled) {
    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}
if (MODULE_PAYMENT_PAYPAL_UK_EXPRESS_TRANSACTION_SERVER == 'Live') {
    $api_url = 'https://payflowpro.verisign.com/transaction';
    $paypal_url = 'https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout';
} else {
    $api_url = 'https://pilot-payflowpro.verisign.com/transaction';
    $paypal_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout';
}
if (!tep_session_is_registered('sendto')) {
    tep_session_register('sendto');
    $sendto = $customer_default_address_id;
}
if (!tep_session_is_registered('billto')) {