PayPal MassPay Integration – keep it simple

Well, you can use PayPal Mass Payment API in two ways:

  1. By using their SDK
  2. By using direct HTTP POST
Their example for SOAP based implementation requires SDK to be installed. The worst thing about it: its include paths are not relative. This will waste your time during integration.
I would recommend that you should with NVP example. This is simple and works out of box.
Posted in WordPress Dev | Tagged , , , , , | Leave a comment

Don’t use CJ Product Search API for fetching local deals

I am setting up a Yipit Clone for a client of mine.

The script uses CJ’s product search API to fetch local deals. If you look up API’s response, you’ll be surprised to know that it does not contain any XML tag that tells about the relevant city/location.

My immediate question was: how the script filters deals based on cities and I came to know that the script assigns cities to the deals randomly. WHAT!!! Yes, that was my spontaneous response. That kills the whole notion of local deals. I do not know what those clone developers are selling to the innocent people!

My advice: Use CJ’s data feeds available @ Account > Services section. You’ll find city under <keywords> tag. This advice is particularly relevant to BuyWithMe. I am not sure about other providers

Posted in WordPress Dev | Tagged , , , , , | Leave a comment

Setting up testing, acceptance, production servers with WordPress and Domain Mapping Plugin

Problem

We have a web server available to us. We have to setup 3 domains on it:

  • domain-for-testing.com
  • domain-for-acceptance-testing.com
  • domain-for-production

In each domain, we have to set up X sub sites using WordPress Multisite.

Solution

  1. First, we have to setup 3 virtual hosts by changing /etc/apache/httpd.conf . Visit this for more details.
  2. At the end of the above step we’ll have 3 directories /var/www/testing, /var/www/acceptance and /var/www/production. Now, we’ll have to install WordPress in each of these directories.
  3. Change the above installations to network. See this
  4. Now, install domain mapping plugin on each of the networks
  5. Open the plugin’s options page. Specify domain-for-testing.com etc. as primary domain
  6. Now, create X sub domains and specify full domains against them that you want the world to see
Posted in WordPress Dev | Tagged , , | Leave a comment