@@ 287-291 (lines=5) @@ | ||
284 | } |
|
285 | ||
286 | if ( OSCOM_APP_PAYPAL_GATEWAY == '1' ) { // PayPal |
|
287 | if ( !in_array($appPayPalEcResult['ACK'], array('Success', 'SuccessWithWarning')) ) { |
|
288 | tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . stripslashes($appPayPalEcResult['L_LONGMESSAGE0']), 'SSL')); |
|
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')); |
|
@@ 339-345 (lines=7) @@ | ||
336 | tep_redirect(tep_href_link('ext/modules/payment/paypal/express.php', '', 'SSL')); |
|
337 | } |
|
338 | ||
339 | if ( in_array($appPayPalEcResult['ACK'], array('Success', 'SuccessWithWarning')) ) { |
|
340 | if ( !tep_session_is_registered('appPayPalEcSecret') || ($appPayPalEcResult['PAYMENTREQUEST_0_CUSTOM'] != $appPayPalEcSecret) ) { |
|
341 | tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL')); |
|
342 | } |
|
343 | } else { |
|
344 | tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . stripslashes($appPayPalEcResult['L_LONGMESSAGE0']), 'SSL')); |
|
345 | } |
|
346 | ||
347 | if (empty($comments)) { |
|
348 | if (isset($HTTP_POST_VARS['ppecomments']) && tep_not_null($HTTP_POST_VARS['ppecomments'])) { |