Help Article

Before June 30th, 2018 PayPal is requiring all account users to update their browsers to remain compliant with new security standards. You won't be able to access your PayPal account after June 30th if your browser isn’t updated. Learn how to upgrade your browser.

Why did I get error 4002 when using PDT?

While you were using Payment Data Transfer, PayPal returned general error code 4002.

This error may have several different causes, such as:
  • An invalid tax token.
  • Cookies.
  • Cache.
  • Internet congestion.
  • The email address isn't confirmed on the PayPal account receiving the payment.

With regard to Payment Data Transfer (PDT), error 4002 simply means that the request couldn't be completed, usually because the information being sent back is:
  • Incorrect.
  • Posting to the Sandbox instead of the Live site.
  • Requesting the same transaction data more than five times.

If an invalid tax token produced error 4002, you can resolve it using Classic ASP:
txToken = "ThisIsABogusTaxToken, ThisIsA2ndBogusTaxTokenPassedInWhenACreditCardIsUsed"
iFindComma = InStr(txToken,","
if iFindComma > 0 then
txToken = left(txToken,iFindComma-1)
end if
query = "cmd=_notify-synch&tx=" & txToken & "&at=" & g_paypal_token
We’re sorry. The page you’re looking for is no longer available. To search again or contact us, please visit our Help Centre.