|
@@ 292-298 (lines=7) @@
|
| 289 |
|
} elseif ( !tep_session_is_registered('appPayPalEcSecret') || ($appPayPalEcResult['PAYMENTREQUEST_0_CUSTOM'] != $appPayPalEcSecret) ) { |
| 290 |
|
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL')); |
| 291 |
|
} |
| 292 |
|
} else { // Payflow |
| 293 |
|
if ($appPayPalEcResult['RESULT'] != '0') { |
| 294 |
|
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . urlencode($appPayPalEcResult['OSCOM_ERROR_MESSAGE']), 'SSL')); |
| 295 |
|
} elseif ( !tep_session_is_registered('appPayPalEcSecret') || ($appPayPalEcResult['CUSTOM'] != $appPayPalEcSecret) ) { |
| 296 |
|
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL')); |
| 297 |
|
} |
| 298 |
|
} |
| 299 |
|
|
| 300 |
|
$order->info['payment_method'] = '<img src="https://www.paypalobjects.com/webstatic/mktg/Logo/pp-logo-100px.png" border="0" alt="PayPal Logo" style="padding: 3px;" />'; |
| 301 |
|
} |
|
@@ 396-402 (lines=7) @@
|
| 393 |
|
tep_redirect(tep_href_link('ext/modules/payment/paypal/express.php', '', 'SSL')); |
| 394 |
|
} |
| 395 |
|
|
| 396 |
|
if ( $appPayPalEcResult['RESULT'] == '0' ) { |
| 397 |
|
if ( !tep_session_is_registered('appPayPalEcSecret') || ($appPayPalEcResult['CUSTOM'] != $appPayPalEcSecret) ) { |
| 398 |
|
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL')); |
| 399 |
|
} |
| 400 |
|
} else { |
| 401 |
|
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . urlencode($appPayPalEcResult['OSCOM_ERROR_MESSAGE']), 'SSL')); |
| 402 |
|
} |
| 403 |
|
|
| 404 |
|
if ( empty($comments) ) { |
| 405 |
|
if ( isset($HTTP_POST_VARS['ppecomments']) && tep_not_null($HTTP_POST_VARS['ppecomments']) ) { |