How Do You Use PayPal Express Checkout in XAMPP? - xampp

I am hosting a website using XAMPP. The website uses PayPal API for Express Checkout. If I move the website to a real hosted server (i.e. www.website.com), the PayPal checkout system will work. If I use it from XAMPP (localhost), it won't even connect to PayPal. How would I make this work from my localhost?

Step 1: Port forwarding. Your router has a public ip (not 127.0.0.1) Configure your router to accept requests from the interwebs.
Step 2. Have a spare domain name? Configure your domain # your registar: Point "A" Record to your newly forwarded IP.
Step 3. Add a fake HTTPS cert http://curl.haxx.se/ca/cacert.pem to the root folder of your XAMPP installation.
Not the end-all, say, all-a guideline. Tricky, but a starting point.
With this approach, you can test Paypal IPN's, use the sandbox, all the good stuff, as well as monkey around with all the other major vendors' api's on your local server.

These links will be helpful for you.
http://demos.ipn-easy.com/Howto/TestEnvironment.aspx
Can I test paypal api's from localhost

Related

create php web service and access to the internet

I have recently installed PHP, MySQL Server, and Apache web server. I played around with some PHP scripts locally on the PC to insert some entries to MySQL Database.
Noob question so please be patient with me:
How do I get my web service out to the internet, by self hosting? Say I already have a domain for example mydomain.com How do I make it so that when someone not within my network can access mydomain.com/something and can send some data so my server gets it and do anything with that data?
Webhosting
You have to have some form of webhosting. You pay for hosting and you can upload your PHP files to their servers. They will usually also have database servers you can use.
Your domain name has to point to those servers via DNS so the internet can reach your application. I'd suggest you search the internet for popular hosts that provide the tools your need for this.
Self hosting
Another possibility is to open your network up to the world, but this is not recommended unless you have network administration experience due the security trouble that comes with it.
In short: forward a port through your router to the machine running your application. The website portforward.com has instructions on how to do this but keep in mind that misconfiguration could lead to vulnerabilities in your network.
In order to make you site public
1. you need host
2. you need domain
there are bunch of hosting sites you should get one first.
This link explains very well about self hosting
https://www.boutell.com/newfaq/creating/hostmyown.html

Magento https not working in localhost

I have changed my magneto localhost to https.My site is not working now.I want to go back to http.For that I have made changes in the table core_config_data web/secure/base_url to "http" ,web/secure/use_in_frontend,web/secure/use_in_adminhtml to "1" but still it is working
thanks,
It will not work on localhost. Because local server don't support the ssl. You must have ssl install on your server to run it using https. You will need to install openssl.
http://www.neilstuff.com/apache2-ssl-windows.html
Change secure base url in core_config_data from https:// to http://.
Also, since you're talking localhost, I take it this is a dev machine. If it's running under Linux, it's pretty easy to create your own CA, add it to your browser cert store and create a self signed certificate for your web server. You'll have to add a virtual host entry for port 443 and the usual SSL specific entries in it. Makes Magento development go a lot easier.

Set up a simple go server in a webhost

I wanted to set up a simple go server in a webhost. I acquired a domain mydomain.com and hosted it using Bluehost. Now, going through the Go tutorial, I went through this example http://tour.golang.org/#59 and it works fine on my machine. Now, instead, I want to make the HelloWorldServer work when I call mydomain.com:4000 or some other port.
What I did was ssh to my server at bluehost, install go there, then compile the server and run. But then I try to access mydomain.com:4000 and it is not found. I also tried to change "localhost:4000" to just ":4000". any ideas how to make it work ?
Any help or pointers are appreciated. (some more details: it is a shared-hosting account)
This is due to the firewall on your BlueHost server not having ports (including 4000) open on a shared hosting account, Firewall Port Restrictions
If you want to do some simple (and not so simple) web hosting, why don't you look at Google App Engine

how to set up SSL on a magento multisite

We just moved a bunch of our websites from one server to another (obviously changing their IP addresses in the process), some of which were multisites in magento. The domains are not parked, but the multisites work. I don't completely understand how magento works regarding multisites, but that's not necessarily what my question is.
When we moved the websites, the multisites were broken. Eventually, we hired a freelancer to fix the multisites. Last night, i put the entire website package (multisites included) on their own dedicated IP addresses. They're on the same server, in the same place, but they have their own IP address on that server. I just walked in monday morning and SSL is broken on all the multisites, but works on the main website. Can anybody tell me what to do here? I have access to the certificate, bought through a third party. When i try to list the certs in cpanel, it just lists the main website as a "controlled certificate". My question is, why did these work on the original IP address after being transferred to the new server? and how do i set up SSL on the multisites? I have cPanel but im actually an admin that's worked WITHOUT cpanel for many years (not in webhosting). so i dont know much about ssl.
Depends on what certificate you have and server config. The only thing in magento you should check is the secure url is https and that it is enabled per each site in the admin. The certificate setup depends on what type of certificate you are using. If it's a wild card/ucc certificate that covers all domains/subdomains then it should simply install the certificate and the issuing authorities certificate, setup vhosts and it should work for all sites. If it's individual certificates per website you will need to install each certificate onto the server but this can be complex.
You also need to configure the apache vhost for each site so there is a host listening on port 443 for each site. there should be an ssl directive poiting to the certificate files. Check the vhost for the working site and compare to the others to see if anything is missing. If individual certificates (i.e. one per each domain) you normally need to have multiple ips for your server, one per each domain.
This issue got complex because our server was set up using cPanel, which means it had a bunch of pre-installed programs (like, for example, sendmail, dovecot, etc.) the program that was giving me grief over this issue was suphp. I couldn't figure out how to make the multisites work independently of the parent website. so, say i have www.frattoys.com as the parent and a bunch of child sites that pull from it, like frattanks.com, irontap.com, etc. those child websites share source code with frattoys.com. suphp wasnt allowing frattanks and irontap to pull code from frattoys if they were independent websites; independent cpanel and user accounts. thats why i was trying to install SSL on top of addon or subdomains; hence the question. as it turned out, i ended up uninstalling suphp and replacing it with fastcgi. that way, i could set the permissions to what they needed to be, share the code with frattoys, and install SSL on the child websites without too many issues.
The eventual solution to my problems was to install fastcgi (uninstall suphp), create independent users for each child website, and install SSL certificates from WHM for each child user.

Configure paypal sandbox for local networks

Is there a way to configure a Paypal sandbox IPN for local networks? Since I am testing it on my personal computer I cannot provide a static IP.
PayPal delivers IPNs to a URL that you provide. It has to be reachable by PayPal.
The question doesn't make sense.
I have found a solution to work with paypal sandbox on local networks.
Install ngrok. This creates a public address for your local network so that it can be accessible from outside networks. You can use the ipaddress generated by it to test ipn.

Resources