Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support error code 10486

  • Loading branch information...
commit ebb117ffe6dad532983d0b292201f859f755c020 1 parent ee5f89c
@haraldpdl haraldpdl authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 catalog/includes/modules/payment/paypal_express.php
View
12 catalog/includes/modules/payment/paypal_express.php
@@ -190,6 +190,18 @@ function before_process() {
$response_array = $this->doExpressCheckoutPayment($params);
if (($response_array['ACK'] != 'Success') && ($response_array['ACK'] != 'SuccessWithWarning')) {
+ if ( $response_array['L_ERRORCODE0'] == '10486' ) {
+ if (MODULE_PAYMENT_PAYPAL_EXPRESS_TRANSACTION_SERVER == 'Live') {
+ $paypal_url = 'https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout';
+ } else {
+ $paypal_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout';
+ }
+
+ $paypal_url .= '&token=' . $ppe_token;
+
+ tep_redirect($paypal_url);
+ }
+
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . stripslashes($response_array['L_LONGMESSAGE0']), 'SSL'));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.