Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

500 Error Response #1

Closed
chrismatthieu opened this issue Apr 23, 2013 · 7 comments
Closed

500 Error Response #1

chrismatthieu opened this issue Apr 23, 2013 · 7 comments
Assignees
Labels

Comments

@chrismatthieu
Copy link

I'm receiving the following error response when calling the credit card payment API:

{ [Error: Response Status : 500]
response:
{ name: 'INTERNAL_SERVICE_ERROR',
message: 'An internal service error has occurred',
information_link: 'https://developer.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR',
debug_id: 'e69d5d0abab0a',
httpStatusCode: 500 },
httpStatusCode: 500 }

Here's my JSON request:

"intent":"sale","payer":{"payment_method":"credit_card","funding_instruments":[{"credit_card":{"type":"visa","number":"4111111111111111","expire_month":"01","expire_year":"2014","cvv2":"111"}}]},"transactions":[{"amount":{"total":"1","currency":"USD"},"description":"Credits added to account."}]}

I'm not sure how to debug it...

Thanks,
Chris

@ghost ghost assigned prannamalai Apr 24, 2013
@prannamalai
Copy link
Contributor

@chrismatthieu , just ran all the test cases they seem fine. Can you try your testing with test card number 4417119669820331 instead of the test card number 4111111111111111.

I have seen 500 error sometimes for that particular card number and we have reported the error to API team.

prannamalai added a commit that referenced this issue May 30, 2013
Added authorization and capture services
@prannamalai
Copy link
Contributor

@bschupbach if you still have issues please try with this test credit-card 4417119669820331

@dustinpkane
Copy link

I was having this problem earlier. It turns out Paypal gives the 500 error when it encounters commonly used test credit card numbers. Basically, when it returns 500, what it means is that the card is declined. I know for a fact that 4111111111111111 does this. Try using a real credit card number. If you're in sandbox mode it's irrelevant anyway so don't worry about charging.

@uditkumawat
Copy link

General Information

Mode (Live):
PayPal-Debug-ID(s) (from any logs): 1559c48ff33c8
Version of node.js used: 4.4.7
SDK Version:
Issue Description

I am using REST API for creating payment using credit card and payouts.But it was working fine with sandbox credentials but for Live credentials it was giving errors like this :
{
"status": 403,
"duration_time": 123,
"body": {
"message": "Authorization error occurred",
"debug_id": "1559c48ff33c8",
"information_link": "https://developer.paypal.com/docs/api/payments.payouts-batch/#errors",
"name": "AUTHORIZATION_ERROR"
},
"additional_properties": {},
"header": {
"Content-Length": "188",
"Content-Language": "*",
"Date": "Thu, 29 Sep 2016 07:40:34 GMT",
"Connection": "close",
"Paypal-Debug-Id": "1559c48ff33c8",
"PROXY_SERVER_INFO": "host=dcg11javapapi3114.dcg11.slc.paypalinc.com;threadId=370",
"Content-Type": "application/json"
}
}

{
"status": 401,
"duration_time": 49,
"body": {
"message": "Unauthorized payment.",
"debug_id": "eabb84d3ef438",
"information_link": "https://developer.paypal.com/webapps/developer/docs/api/#UNAUTHORIZED_PAYMENT",
"name": "UNAUTHORIZED_PAYMENT"
},
"additional_properties": {},
"header": {
"Content-Length": "191",
"Content-Language": "*",
"CORRELATION-ID": "eabb84d3ef438",
"Date": "Thu, 29 Sep 2016 11:48:50 GMT",
"Connection": "close",
"Paypal-Debug-Id": "eabb84d3ef438",
"PROXY_SERVER_INFO": "host=dcg12javapapi7866.dcg12.slc.paypalinc.com;threadId=704",
"Content-Type": "application/json"
}

Please help me in resolving this issue.

@braebot
Copy link
Contributor

braebot commented Oct 4, 2016

@uditkumawat, please open new issues for your questions to get a quicker response. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants
@chrismatthieu @prannamalai @braebot @dustinpkane @uditkumawat and others