Paypal Adaptive Payments Error 520002 Sandbox

znem
Contributor
Contributor

Hi Community,

 

I try to send a sandbox request to adaptive payments api. I am getting error 520002 (internal error) with no further explanation. 

 

I can not find the problem. Thanks for any help!

 

Request details:

 

Body

{
"actionType": "PAY",
"currencyCode": "EUR",
"receiverList": {
"receiver": [
{
"amount": "10",
"email": "valid sandbox buyer email",
"primary": True
},
{
"amount": "10",
"email": "another valid sandbox buyer email",
"primary": False
}
]
},
"returnUrl": "https://www.mydomain.com",
"cancelUrl": "https://www.mydomain.com",
"feesPayer": "PRIMARYRECEIVER",
"trackingId": "asdfgh",
"requestEnvelope": {
"errorLanguage": "en_US",
"detailLevel": "ReturnAll"
}
}

 

Header

X-PAYPAL-SECURITY-USERID: XXXXX-facilitator_api1.XXXXXXX.de
X-PAYPAL-SECURITY-PASSWORD: 7P8E4HE2XXXXXXX
X-PAYPAL-SECURITY-SIGNATURE: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
X-PAYPAL-REQUEST-DATA-FORMAT: JSON
X-PAYPAL-RESPONSE-DATA-FORMAT: NV
X-PAYPAL-RESPONSE-APPLICATION-ID: APP-80W284485P519543T

 

Response

[responseEnvelope_timestamp] => 2017-08-03T05:19:40.045-07:00
[responseEnvelope_ack] => Failure
[responseEnvelope_correlationId] => 98a4ca93e329b
[responseEnvelope_build] => 37103655
[error(0)_errorId] => 520002
[error(0)_domain] => PLATFORM
[error(0)_subdomain] => Application
[error(0)_severity] => Error
[error(0)_category] => Application
[error(0)_message] => Internal Error

 

 

 

Login to Me Too
6 REPLIES 6

MTS_Justin
Moderator
Moderator
Hi @znem

Can you provide a new example if this issue is still happening ? The logs for the example you provided have expired.


Was my post helpful? If so, please give me a kudos!
Login to Me Too

phatph
Contributor
Contributor

I got same problem.

Can you help me?

@MTS_Justin 

 

Headers: {

'X-PAYPAL-SECURITY-USERID': 'XXXXX.XX_api1.vmodev.com',
'X-PAYPAL-SECURITY-PASSWORD': 'XXXXXXXXXXXXXXXX',
'X-PAYPAL-SECURITY-SIGNATURE': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'X-PAYPAL-REQUEST-DATA-FORMAT': 'JSON',
'X-PAYPAL-RESPONSE-DATA-FORMAT': 'JSON',
'X-PAYPAL-APPLICATION-ID': 'APP-80W284485P519543T',
'Content-Type': 'application/json'

}

 

body: 

{
"actionType": "PAY_PRIMARY",
"receiverList": {
"receiver": [
{
"amount": 107.25,
"email": "valid sandbox buyer email",
"primary": false
},
{
"amount": 487.25,
"email": "another valid sandbox buyer email",
"primary": true
}
]
},
"currencyCode": "USD",
"feesPayer": "EACHRECEIVER",
"memo": "Order id 5e8a9341f27334537f7a4979. Shipping Amount is total shipping fee and insurance. Shipping = 85, Insurance = 2.25",
"returnUrl": "http://localhost:3000/checkout/complete/5e8a9341f27334537f7a4979?type=login",
"cancelUrl": "http://localhost:3000/checkout/cancel/5e8a9341f27334537f7a4979?type=login",
"requestEnvelope": {
"errorLanguage": "en_US"
}
}

 

and response: 

{ responseEnvelope:
{ timestamp: '2020-04-05T21:25:40.316-07:00',
ack: 'Failure',
correlationId: 'a4e8b2d9729d0',
build: 'apapiserv-0.0.1_20200106071415014' },
error:
[ {

errorId: '520002',
domain: 'PLATFORM',
subdomain: 'Application',
severity: 'Error',
category: 'Application',
message: 'Internal Error'

}]

}

Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

Thanks for taking the time to report this issue.

I've reviewed internally and this appears to be a known issue at the moment. Our engineering team have been made aware and an investigation is already underway.

I'll "pin" this thread to the top of the forum so any other people who may be experiencing a similar issue are aware and I'll post back here once the issue has been resolved.

Apologies for any inconvenience.

Thanks !

Was my post helpful? If so, please give me a kudos!
Login to Me Too

MTS_Justin
Moderator
Moderator
Hello @phatph

This issue should now be resolved.

Apologies for any inconvenience.

Thanks !

Was my post helpful? If so, please give me a kudos!
Login to Me Too

phatph
Contributor
Contributor

Hi @MTS_Justin , my service use Paypal adaptive payment occur error 520002 on live environment. Sometime working fine, sometime occur error.

Can your team check and support for our application, please.

 

USER_ID: XXXXX.XXXX.XXXXbluebook.com
APP_ID: APP-0W593003X8887330E
 
Thank you.
Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

This is the sandbox forum where support is provided for sandbox related issues.

For production environment issues, either submit a new thread in the relevant forum (NVP/SOAP API's) or submit a support ticket to our team - https://www.paypal.com/mts

Thanks !

Was my post helpful? If so, please give me a kudos!
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.