Closed alusev closed 9 years ago
I almost forgot. I also altered the if
statement on line 411:
if (in_array($parsed['L_ERRORCODE0'], $this->redirectErrors)) {
// We can catch an exception that requires a redirect back to paypal
throw new PaypalRedirectException($this->expressCheckoutUrl( $token ));
}
I don't suppose you logged the full response from PayPal when you received the 10486 error code did you? It would be great to update the tests with this.
OK I've found an example;
(
[TIMESTAMP] => 2014-02-17T19:36:38Z
[CORRELATIONID] => eb921d
[ACK] => Failure
[VERSION] => 53.0
[BUILD] => 972069
[L_ERRORCODE0] => 10486
[L_SHORTMESSAGE0] => This transaction couldn't be completed.
[L_LONGMESSAGE0] => This transaction couldn't be completed. Please redirect your customer to PayPal.
[L_SEVERITYCODE0] => Error
)
Thanks for spotting this, will add a fix shortly :smile:
Yes, I have logged it: Array ( [TIMESTAMP] => 2015-04-07T19:01:02Z [CORRELATIONID] => da002affa0d97 [ACK] => Failure [VERSION] => 104.0 [BUILD] => 16057073 [L_ERRORCODE0] => 10486 [L_SHORTMESSAGE0] => This transaction couldn't be completed. [L_LONGMESSAGE0] => This transaction couldn't be completed. Please redirect your customer to PayPal. [L_SEVERITYCODE0] => Error )
Sorry, I guess I am a little bit late.
I had an actual ‘paypal redirect error’ (10486) while calling
doExpressCheckoutPayment
. I noticed that$parsed
doesn’t have aTOKEN
key. So I used the$token
passed as an argument and it worked great.throw new PaypalRedirectException($this->expressCheckoutUrl( $token ));
PS: Great plugin! Thanks a lot!