I'm using PayPal-PHP-SDK Package. When I go live, some of my customers (not everyone) are telling me they see an error after the payment (when I try to execute).
I tested the execution in my localhost (WampServer) and it worked. It's not a problem in my credentials because the payment itself worked. The method I use is paypal. What can cause this error?
You might be getting an error of two possible reasons.
You didnt change the clientId and Secret of Live Environment. You should be able to find one on the developer dashboard.
You have not change the mode to live instead of sandbox in your configuration.
In very rare cases, you dont have the permission in live to accept payments.
You can follow instructions here about Going Live.
Related
I made a stripe payment on my new webpage hosted by aws. After that the page shut down (it always returns error 500: internal server error. I tried a lot of things, also shutting down the instance and rebooting it. It still returns error 500. I'm not very experienced in this topic so I don't know what information you may need so feel free to ask. I would be very happy if someone could help me to get my webpage back running normally. Thank you in advance!
This could be any number of things and debugging it will require a great deal more detail. You should start by reviewing your server logs to see what is causing that 500 error.
You also need to more clearly describe the flow being used here. Is this a redirect to your site from eg Stripe Checkout? Is this an API call from your own app to your own backend?
I have set up a simple Wordpress site with an order form but I'm struggling to get the site to recognise Sage Pay.
I've been following the initial instructions in the PHP integration kit - http://www.sagepay.co.uk/support/find-an-integration-document/direct-integration-documents:
Create a database and add the necessary tables.
Edit the /lib/config.php and the /demo/config.php to include my Sagepay Account and database details
In the test server for Sage Pay I also added the IP address of my site as an exception.
Every time I run the https://mywebsite.com/demo it returns the error:
Ooops!!!
An unexpected error seems to have occurred.
Try to refresh the page or you can contact us if the problem persist.
This is pretty early on in the but I seem to be doing something wrong. Is there something else that needs edited as the instructions are frustratingly vague.
Would I be better just using a Sagepay Direct plug in with Wordpress e-commerce solutions?
Thanks.
I am also a currently frustrated Sagepay learner. To asnswer you question, I had this problem too. My problem was that i had the database details incorrect. I had my local host details on my test environment, and i had not changed the details correctly in demo/config.php before ftp the file to my webserver. Once i did this, i got over the oops screen. The next problem was that i got a blank screen when running index.php from demo. I was told by sagepay that apache needs restarting as a service everytime somethingortheother happens. So on my local environment i restarted all services in wamp and it worked. I can now see the demo (not that i know what to do now as there are no instructions and the php is hidden in a complex class structure with the html content in some tpl files which i have never seen before - of course there are no instructions in the integration kit at all). Anyway back to the answer. So locally i can run the demo, but i still have white screen on my webserver, becuase i can't restart the apache service there, so that is the next problem. I will keep trying and add anything useful later.
I also had this problem, I had not given the database user account the necessary permissions to access the database.
I've made a soap api login call to the saleforce sandbox and everything works fine.
However when I try to move it to the live environment I'm having problems.
INVALID_LOGIN: Invalid username, password, security token; or user locked out.
Steps I have taken to try and resolve this are:
Generate new enterprise.wsdl
We appended new security token to the password.
Add remote site's ip to trusted ip list in SF.
The strange thing is that even though I receive this error from the API, the login history in SF doesn't show the failed login attempts unless I actually type the incorrect username or password.
Could someone please shed some light on this as I have lost hours of my life to it.
I spent the entire day looking for a solution for this same issue. After changing the URL to from Production to Sandbox and then back, I started receiving the same error message.
So I found this page on their forums with this line of code:
ini_set("soap.wsdl_cache_enabled", "0");
And everything is working now.
Sounds like your login calls are still going to https://test.salesforce.com (which is where sandbox logins would go) when it should be going to https://login.salesforce.com for production users. Check your configs.
Is the CURLOPT_CAINFO in the curl_setopt_array for PayPal in order for 'live' mode to work?
So basically what im asking is do we have to have SSL in order for PayPal live mode to work, because my script i have made works in sandbox, updates my db how i want it, but only in sandbox, not live. Im not wanting to post my script here I'll open a new thread for that, im just asking a general question so hopefully it will help me, or others in the feature, i searched Google and couldn't get a solid answer.
Have a great day!
As of using curl to make connection to Paypal, if Paypal does allow plain http connection, sure you don't worry about SSL. In that case, answer to your REQUIRED question is NO. But as you see, it depends on the service you are talking to. Let's say Paypal only allows https for production server, then you have to deal with SSL, either by ignoring it or set correct cert path. Both have to be done in set_opt. And here is another qa for this:
Source of PEM files for web service access
I'm trying to run the example.php file that comes with the facebook sdk. I do have a hosting server that runs php, and also changed the ID's to the corresponding one on my app. Here is the message i'm getting:
This webpage is not available
The webpage at https://filipeximenes.com/facebook/ might be temporarily down or it may have moved permanently to a new web address.
Error 501 (net::ERR_INSECURE_RESPONSE): Unknown error.
i'm pointing the canvas to this adress: http://filipeximenes.com/facebook/
Thanks.
Based on your description, I think that this is your problem:
Do you have a valid security certificate on the hosting server? I ran into that problem recently when deploying an FB app. Since October, you have to have a valid cert even in sandbox mode for the FB app to run properly. If you don't have one it causes weird problems.
Just a thought that I hope helps.
One other thing to do from a debugging perspective is to take a look at the actual app running on your hosting server without viewing it via FB. If you get the same error message there, you know that it has nothing to do with the FB SDK.
Thanks!
Matt