error:400 Bad Request Unfortunately we could not process your transaction. There was a problem with: No payment data received - payfast

I used payfast as my payment gateway in my website, if am testing payfast on their test engine it works fine when I post values to their engine, but when am using their engine that is not for testing it gives me that error saying "No payment data received"there is an error message I get

I had the same error as well, turns out I was just leaving out the www as Daniel_ZA pointed out.
<form action="https://www.payfast.co.za/eng/process" method="POST"></form>

Related

Endpoint Server GraphQL (overblog-GraphQLBundle) Not support Method POST

For 3 Days, my project which worked perfectly locally, once put on the production server.
GraphQl requests are a failure with the error "[Error: Network error: JSON Parse error: Unrecognized token '<']" and after log analysis it is a 404 error because the route was not found.
After investigation via the GraphQl Atlair client for chrome by changing the method to GET to make my GrasphQl requests, the error everything works.
my question is how to work the POST method?
I really need to use the METHOD POST for mutations
Thanks everyone
Very cordially
You forgot to add a trailing slash to your GraphQL endpoint URL.
Related issue (solved): https://github.com/overblog/GraphQLBundle/issues/669

Display custom error message in ajax over HTTP/2

In my MVC application, I have used Ajax's Response.StatusText to display custom error messages to user whenever there is some error.It works fine but when I deploy my application on AWS, the StatusText gets removed and only the code is displayed. Got to know that because of using HTTP/2, the statusText gets removed.
Is there a way to show custom error message in Ajax error over HTTP/2 ?
Thanks in advance.
I don't think the HTTP Status is the best place to put these. You should either put this status in the body, or possibly in a custom HTTP header.

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.

Error message when using google contact api

When I try to fetch contacts from gmail, I received this error message:
The page you have requested cannot be displayed. Another site was requesting access to your Google Account, but sent a malformed request. Please contact the site that you were trying to use when you received this message to inform them of the error. A detailed error message follows:
The site "http://url.com" has not been registered.
May I know how to rectify it? Thanks!
Have you tried registering the domain with Google's API?
docs:
https://developers.google.com/accounts/docs/RegistrationForWebAppsAuto#new
resgister url:
https://accounts.google.com/ManageDomains
Also if you are making calls from http and not https you may be seeing problems there too.

Implementing cybersource using Ajax

I am using cybersource as the payment gateway for my application. The payment information is sent correctly if we post the form without using an Ajax request.
Now we need to implement this by using an Ajax request. I tried passing the information to cybersource but got a javascript error "access denied" when I tried to submit the form using Ajax post request.
When I tried to debug this issue the line "mypostrequest.open("POST", "theUrl", true);" was giving the error.
Is there any reason why a site might block a post request through Ajax and not block a request from the usual form post ?
Thanks in advance.
There should be no difference, from the perspective of the CyberSource server, between a post via AJAX or a normal form submit, so the server would not have a basis for deciding to block a post via AJAX. The "access denied" problem might be due to the fields and values you included in your post. Make sure all required fields are included.

Resources