Getting Errors when I cancel a Sagepay Payment. Integration with woocommerce - opayo

I am using this plugin to integrate woocommerce with sagepay server inframe. It is able to place orders however if I press cancel on the order then I get the following error.
HTTP Status Code: 500
HTTP Status Message: The request was unsuccessful due to an unexpected condition encountered by the server.
Error Code : 5003
Error Description : Internal server error.
Is it possible to fix this. I am trying to figure out whether this is to with the plugin or perhaps the sagepay protocol
Some code from the plugin reads
$sd_arg['VPSProtocol'] = 3.00;

Related

Laravel Paypal payment execute working on localhost but not on remote server

I am using laravel as a backend and vue as front end while integrating paypal. The integration works locally and the payment process works. But when I tried to go live, it give folowing errors
Access to XMLHttpRequest at 'https://www.example.com/myApi/api/execute-payment/' from origin 'https://www.example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
POST https://www.example.com/myApi/api/execute-payment/ net::ERR_FAILED
Uncaught Error: Request to post https://www.example.com/myApi/api/execute-payment/ failed: [object ProgressEvent]. Correlation id: null
at XMLHttpRequest.xhrError (http.js:123)**
I have already handled Cors on the backend. I have tried using Cors google extension on local server (hitting the live endpoints) but the execute payment method does not return to my url instead keep loading (executing and executing) which does not seem to stop.
I have not changed the paypal environemnt to 'production' on the client side though because of testing purpose.
Also the payment creation (createPayment) flow works fine on live server. It just gives this error after I login to paypal account and click pay (to start payment execution).
Kindly Help me. Thank you.

JMeter & Salesforce : Facing an error as 'Error occurred while loading a Visualforce page. Attempt to de-reference a null object'

I am creating script in JMeter for a Salesforce application but I am Facing an error as
Error occurred while loading a Visualforce page. Attempt to de-reference a null object' for one of my POST request.
Response code received is 500 with message 'Server Error'
HTTP Status 500 stands for Internal Server Error, you should look into your server logs in order to get to the bottom of the issue.
If you don't have access to your application logs - you can perform some client-side troubleshooting, the common way is to capture the request which is being sent by JMeter and the real browser using a sniffer tool like Wireshark or Fiddler and compare them. The requests should look exactly the same (apart from dynamic values which need to be correlated)
You should pay attention not only to the request body, but also HTTP Headers (including Cookies) as everything matters.
You might also want to check out JMeter – Logging Into Salesforce for Automated Testing article

woocommerce checkout ajax 500 error

I have updated the woocommerce plugin in my site to version 2.6.0 recently and now I am facing a 500 error during checkout and this error message changed as per the payment method.
I have couple of payment methods as Direct Bank Transfer and Cash On Delivery.
When I use Direct Bank Transfer I am getting an error message error Internal Server Errorand in browser console I am able to see the problem is with http://example.com/checkout-2/?wc-ajax=checkout Failed to load resource: the server responded with a status of 500 (Internal Server Error)
On the other hand when I user Cash On Delivery as payment method I am seeing an error String could not be parsed as XML.
Anyone facing similar issues with woocommerce? not sure if this is because of plugin update or any other function.
I figured it out myself finally. The problem is I messed up with the woocommerce email templates. When I undid all the changed in email templates the order slow started working normally.
During the debug process I noticed that though I get the Internal Server Error the order is getting posted successfully and is visible in woocommerce admin so I was getting the errors all this while due to changed email templates where I failed to pass the order data properly into emails.

Getting Null Exception in GooglePlus Page API

I got an exception frequently while getting and posting activities via GooglePlus Page API. The details are given below:
APIs:
https://www.googleapis.com/plusPages/v2/people/userId/activities/collection
https://www.googleapis.com/plusPages/v2/people/userId/activities
Exception:
{"error":{"message":null,"code":500}}
Can anyone tell me why i am getting the above exception and how to fix this?
I like to call 500 a server hiccup. Normally you can just send the request again and it will work. Why you are getting it only Google knows. Just send it again.
INTERNAL_SERVER_ERROR (500)
Error code Description internalError The request failed due to an
internal error.
You can find it in Googles standard error responses page.

500 internal server error while trying to use the registration form

I am using the registration form that is already available in the user manager option in my website.
But once I click on the register button I get this message:
Server error The website encountered an error while retrieving
http://prachi.matrimony4me.in/index.php/sample-sites-2?task=registration.register.
It may be down for maintenance or configured incorrectly. Here are
some suggestions: Reload this webpage later. HTTP Error 500 (Internal
Server Error): An unexpected condition was encountered while the
server was attempting to fulfill the request.
Try turing off SEF in the main joomla configuration.
refresh the page and try agian?
are you using
JRoute:_('index.php') or JRoute:_('index.php?option=com_users')
in your form action?
the link just looks wrong.
Is that the default registration form ? there shouldnt be any task in the url.

Resources