cancel
Showing results for 
Search instead for 
Did you mean: 

10002 Error Code for DoDirectPayment API

Options
Chris_Xia
Contributor
Posted on

My business account has been upgrade to a Pro account. all the user , password is from the account setting ( I marked the password in below request).  the response from PayPal is you have not permission to call this api. My question is what else setting needed in my account?

 

curl https://api-3t.sandbox.paypal.com/nvp \
--insecure \
-d VERSION=100.0 \
-d SIGNATURE AIZFYNCeWqC3wzX-lhHNHkwXM35nAgzUJ2sjgGJN3VlduyyMvqXFSTo7 \
-d USER biqiong.xia-facilitator_api1.zuora.com \
-d PWD ***** \
-d METHOD=DoDirectPayment \
-d PAYMENTACTION=Authorization \
-d IPADDRESS=172.24.16.194 \
-d AMT=1 \
-d CREDITCARDTYPE=Visa \
-d ACCT=4032035839880531 \
-d EXPDATE=042020 \
-d CVV2=123 \
-d FIRSTNAME=John \
-d LASTNAME=Smith \
-d STREET=1 Main St. \
-d CITY=San Jose \
-d STATE=CA \
-d ZIP=95131 \
-d COUNTRYCODE=US

 

Response is below

 

TIMESTAMP=2019%2d07%2d01T09%3a22%3a18Z&CORRELATIONID=17bfed67cbcf9&ACK=Failure&VERSION=100%2e0&BUILD=53072421&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Authentication%2fAuthorization%20Failed&L_LONGMESSAGE0=You%20do%20not%20have%20permissions%20to%20make%20this%20API%20call&L_SEVERITYCODE0=Errorcurl: (6) Could not resolve host: AIZFYNCeWqC3wzX-lhHNHkwXM35nAgzUJ2sjgGJN3VlduyyMvqXFSTo7
curl: (6) Could not resolve host: biqiong.xia-facilitator_api1.zuora.com
curl: (6) Could not resolve host: 9NZQTUG7ZET5E76V
curl: (6) Could not resolve host: Main
curl: (6) Could not resolve host: St
curl: (6) Could not resolve host: Jose

 

Haven't Found your Answer?

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