How to Make Paypal Work
with phpYellow PagesTM

Using Paypal

I'm a member of the PayPal Developer Network phpyellowTM can use Paypal to process payments for listings on your directory. For phpYellow Pro Edition version 3.48 or higher follow the steps below to configure:


Step 1: Pretest

Before changing anything make sure that phpyellowTM is processing paid listings and can successfully handle a pretest of just the phpyellow components. This is how:

  1. login to the Client Control Panel
  2. click the 'Upgrade Listings' button
  3. choose the listing to upgrade
  4. at the 'Checkout' page, click on 'Next Step' (the preselected 'Test' payment is used)
  5. at the 'Purchase a Listing' page, click on 'Next Step'
  6. at the 'Thank You' page, click on 'Look at your NEW listing!'
  7. the result is an upgraded listing set to the type you selected

A successful Pretest verifies internal phpyellowTM functionality - and helps in isolating external payment gateway problems.

DO NOT PROCEED UNTIL THIS PRETEST IS WORKING TO YOUR SATISFACTION.

Step 2: Make this change on Paypal

Make this change to your Paypal account :

  • log in to Paypal
  • verify you have a Paypal Premier or Business Account
  • [ optional: set Profile -> Selling Preferences -> Shipping Calculations -> disable the shipping fee calculation ]

Step 3: Make changes to phpYellowTM Pages

In the file called util.php make these changes:

  • define("INSTAPAY", "elective"); // or define("INSTAPAY", "required");
  • define("PAYPAL_EMAIL", "Your Paypal email address used for login");
  • save and upload to your web server


Step 4: test

In this step you create test listings and submit them. Follow the transaction all the way through to the end to verify that the data you submitted was correctly processed by phpyellowTM pages and the payment gateway provider.


Optional: How to change default currencies

Change the default USD currency by:

  1. open /gateways/paypal/pro_paypal_variables.php
  2. find this line: <input type="hidden" name="currency_code" value="USD">
  3. change USD to one of:
    • USD - US Dollars, the default
    • CAD - Canadian Dollars
    • EUR - European Euros
    • GBP - Great Britain Pounds
    • JPY - Japanese Yen
  4. Paypal more info: http://www.paypal.com/cgi-bin/webscr?cmd=p/sell/mc/mc_wa-outside


Done!

This completes the steps to integrate Paypal with phpyellowTM Pages. Congratulations, you can start earning revenue using online payment and automatically paid listings.


Disclaimer

These instructions are offered 'as is' with no warranty express or implied as to their efficacy. If they work - great, if they don't, then you need to make changes by reviewing the payment gateway processor documentation and perhaps by consulting with their support. Processors frequently change their documentation and gateway functionality. The documentation does not necessarily reflect the latest changes ... if you find differences then please write us and let us know what you had to change.