I am using PayPal API of php. It was ok since 2 years but now its creating problems for some customers. Some of the orders are fine but for few users, the transaction is completed but API doesn't response (throw empty response).
I don't think it will be because of code issue. I am unable to track the issue. Anyone know, why it's showing the random behavior.
The interesting thing is, for the same customer, doing the second time transaction, it works fine. Totally random behavior. Please need expert suggestion.
Please contact PayPal Merchant Technical Support, provide with your PayPal account and API request example which go empty response.
https://www.paypal-techsupport.com/
Related
To give you an overview of my platform, I am using Angular.js 1.5 and Laravel 5.1.
I am using the Paypal REST API SDK for PHP. I have followed the instuctions from this Medium article. On my front end Angular side, once I successfully call the first "postPayment" function, I receive the redirect url, which I redirect to. Once the user completes their payment successfully on the paypal side, the return url comes back to my confirmation page where I handle the "getPaymentStatus" function from the Medium article.
I am using a Sandbox account for testing purposes right now, but I am able to successfully complete the transaction when a user logs in on the Paypal side. However, when a user tries to go through as a guest "Debit/Credit card", enters their information, and completes the transaction, I receive this 400 error in the console:
POST sandbox.paypal.com/webapps/xoonboarding/api/onboard/guest 400 (Bad Request)
jquery.min.js:5
On my Paypal profile settings, I have activated the Account Optional in the My Selling Tools->Website Preferences. I have been looking for other instances of this, but I cannot find a solution. I have tried using the test credit cards with various phone numbers, but that does not resolve this issue.
Has anyone dealt with this issue before? I am in the dark and do not know how to handle this.
I would appreciate any help in this. Thanks in advance!
i've been using PayPal REST API since some months to handle sale payments programmatically without problems, both on live and sanbox platform. From a couple of days I figured that, only for sanbox, is impossible to finalize (execute) payments using resource POST https://api.sandbox.paypal.com/v1/payments/payment/PAY-xxxxxxxxxxxxxxxxxxxx/execute, indeed I get every time INTERNAL_SERVICE_ERROR response with status code 500.
Last response:
Got Http response code 500 when accessing https://api.sandbox.paypal.com/v1/payments/payment/PAY-xxxxxxxxxxxxxxxxxxxx/execute. {"name":"INTERNAL_SERVICE_ERROR","message":"An internal service error has occurred","information_link":"https://developer.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR","debug_id":"2205fb9528a0f"}
Any idea about what is happening?
full disclosure, I work at PayPal leading developer advocacy.
There was an issue with sandbox today and we escalated it through to try to have it resolved. I'm being told that the issue should now be resolved. In my tests on sandbox, the payments are going through. Can you please let me know if you're still encountering the 500 errors? If so, I'll send that back to the team.
Others are experiencing similar issues:
PayPal REST Sandbox API giving INTERNAL_SERVICE_ERROR
I'm experiencing the same only when using 'paypal' as the payment type. Submit a ticket to paypal at:
https://www.paypal-techsupport.com/app/home
Let me try to explain the situation. Our site provide a payment via paypal, DoExpressCheckoutPayment method.
We tested the payment via the sandbox and everything is working fine.
Once we switch to production, the customer cannot make a payment and we get the following in our logs :
Response nvpresp=TIMESTAMP=2016%2d05%2d16T03%3a51%3a20Z&
CORRELATIONID=b6e9d55427207&ACK=Failure&VERSION=56&BUILD=22120179&
L_ERRORCODE0=10486&L_SHORTMESSAGE0=This%20transaction%20couldn%27t%20be%20completed%2e&
L_LONGMESSAGE0=This%20transaction%20couldn%27t%20be%20completed
%2e%20Please%20redirect%20your%20customer%20to%20PayPal%2e&L_SEVERITYCODE0=Error
This issue was not happening a week ago.
My understanding is that the error 10486 is the same as the 10417 but it allows us to send the customer back to paypal, which we are not doing.
Does this mean the payment fails on paypal side, or this issue is coming from our server?
Thank you very much for your comments/answers.
We finally found what was the issue.
In case the customer has its credit card blocked by the bank, this is the error returned by PayPal. In other words, the issue at the customer side.
I hope this will help somebody looking for the same issue.
I hope someone can help with this problem I'm having.
I am building a shopping cart solution using the PayPal payflow api. I have been able to submit successful transactions but. I am having problems with AVS checks and validation.
It seems if I enter an incorrect expiry date the transaction is still successful. Entering a valid CVN number, the paypal response suggests CVV2MATCH=N even when the CVN number is correct.
I've been told I can set up fraud filters, but I cant seem to find these settings. I have checked paypal and the manager paypal accounts.
Any help would be greatly appreciated.
The response codes for AVS and CVV2 come from the card issuing bank, so if you're absolutely certain you're entering the correct value and it's still coming back with an N then you need to call the card issuing bank and as them why that would be happening.
Fraud Filters need to be activated on your account in order for you to have access to them. The easiest way to do this is to call PayPal and request it.
I have a client who will be selling access to an online service on their website. They would like to integrate a PayPal Buy Now button into the site... no problems there. However, they want their customers to have instant access to the online service that they are selling as soon as the payment is processed. That seems reasonable to me... the problem is that I can't seem to find a way to automate that. So my question is really this:
How can I automatically alert my php/mysql web app that a PayPal transaction has gone through?
All I would really need is like a callback process that triggers a php script to updates the customer's record in the database... right? Seems simple to me. But I can't seem to find a way to do it! Anyway, if you've accomplished anything similar with PayPal, I'd be grateful for your advice!
See Instant Payment Notification.
I think you want to send in a variable to paypal (item_number) that they will return to a page that you specify in your post to them (return - success and cancel_return - cancel). They will send you back whether the transaction was successful or not and then with your variable you can make a call to your db to update the record in your database based upon the result of the transaction. In the return page you can also send some sort of notification to the client of the success or failure of the payment process and clean up after a canceled transaction.
PayPal maintains an extensive knowledge base on how to integrate their services with your web app. In think that is a good first starting point. See www.x.com