PayPal Rest API Internal Service Error - paypal

Occasionally we receive an Internal service error as a response from REST API.
Here is the latest one:
{"name":"INTERNAL_SERVICE_ERROR","message":"An internal service error has occurred","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR","debug_id":"863be52d8dddb"}
What is the reason for this error?

You should contact PayPal Merchant Technical Support (MTS) and provide them with the debug_id that is returned:
https://ppmts.custhelp.com/

If you are making CC payment, change your credit card https://ppmts.custhelp.com/app/answers/detail/a_id/750

Related

Paypal REST API v1 localize error message

We are using PayPal express checkout REST API v1 server-to-server
In case of PayPal API endpoint exception, it's possible to get localized error message?
The exceptions/error messages remains same globally,hence not possible to get localized exceptions/error messages from PayPal.

We get paypal error 10423 with no clue what is wrong

We are a big webshop provider, and we have thousands of webshops in our system.
We have a case where we get an error in DoExpressCheckout with PaymentAction of Authorization here is the error
Ack: FAILURE
Build: 000000
Version: 117.0
Timestamp: 2017-04-06T08:54:36Z
CorrelationID: 4d6d16d1d30fa
ErrorCode: 10423
SeverityCode: ERROR
ShortMessage: Transaction refused because of an invalid argument. See additional error messages for details.
LongMessage: This transaction cannot be completed with PaymentAction of Authorization.
We have no clue what is wrong. Because it happens for specific paypal account of a specific customer.
We have two shops / one of a customer of us. Where we get the error. We made another shop in our system where we connected a paypal verified business account and then with another real personal account we bought an item from that shop and it all works. No errors.
We tried to the the same for this problematic customer and we get the error. We are sure that the code we use is the same in both cases and there is no difference in our handling. So the question is what could be wrong on the other paypal business account?
Could it be an SDK problem?
Did you even try to google it? I googled 'paypal 10423' and found:
Issue PayPal returned API error code 10423 - This transaction cannot be completed with PaymentAction of Authorization. Cause You set PaymentAction to "Sale" with SetExpressCheckout at the first API call.
Not sure if this article may help you:
https://www.paypal-knowledge.com/infocenter/index?page=content&expand=true&locale=en_US&id=FAQ1015
Apparently its because your setting the payment action to sale on a SetExpressCheckout then switching to Authorization. Paypal doesn't allow this and advises to set the PaymentAction to Authorization with the SetExpressCheckout then swap to Sale when setting the DoExpressCheckout call.
This is how we post the request to SetExpressCheckout:
SetExpressCheckoutRequestDetailsType req = new SetExpressCheckoutRequestDetailsType();
.....
PaymentDetailsType paymentDetails = new PaymentDetailsType();
paymentDetails.PaymentAction = PaymentActionCodeType.AUTHORIZATION;
paymentDetails.ShipToAddress = ....
req.PaymentDetails.Add(paymentDetails);
So we are 100% sure we use Authorize, and we do the same for DoCheckout, so it seems like PayPal is thinking we did Sale as PaymentAction why is that?

SANDBOX REST API: Getting "INTERNAL_SERVICE_ERROR"

Anyone getting "INTERNAL_SERVICE_ERROR" while using PayPal Sandbox Payment REST API?
Raw response: {"name":"INTERNAL_SERVICE_ERROR","message":"An internal service error has occurred","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR","debug_id":"19534d4c5d45d"}
Raw response: {"name":"UNKNOWN_ERROR","message":"An unknown error has occurred","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#UNKNOWN_ERROR","debug_id":"47c1243107286"}
Turned out it was just the issue of using the wrong credit card number. When I used the credit card number provided in sandbox text account profile, everything worked.
None of the numbers on this page worked for me.
http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm

PayPalRESTException with response as CREDIT_CARD_REFUSED. How to get the cause of this refusal

I was trying to make a transaction through PayPal REST API using a saved credit card in live environment.
I have got a PayPalRESTException with response as CREDIT_CARD_REFUSED.
Here is the error message:
Error code : 400 with response : {"name":"CREDIT_CARD_REFUSED","message":"Credit card was refused","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#CREDIT_CARD_REFUSED","debug_id":"<some number>"}
Now I want to know why the card is refused and how to get any info. from this debug_id.
Is there any way to get all these failed transaction details in PayPal merchant account?
Note: The card was previously authorized and saved in paypal
Merchants aren't usually told the reason for a CC refusal. It's none of their business after all. It's between the CC provider and the cardholder.

Execute API in PayPal - error 500 internal service error

Hi i am getting this error when we call execute api in paypal.
com.paypal.core.rest.PayPalRESTException: Error code : 500
with response:
{"name":"INTERNAL_SERVICE_ERROR","message":"An internal service error has occurred","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR","debug_id":"28eb2ca41ee68"}
Please give me the solution to resolve this.
Can you provide additional information about what you are trying to accomplish?
From what I can see the call is trying to execute a regular credit card payment. However credit card payments are charged when created, or you can use the authorize then capture process to do it in 2 steps.
Execute is used if the payment uses a PayPal founding source.