To the Point Home
expertisefeatured engagementsclientspeoplesitemap
Featured engagements

Software Details

Witango PayPal Integration

paypal.tcf is a Witango class file that supports e-commerce per the PayPal Web Payments Standard Integraton Guide. It is provided free under the LGPL license. For questions, please contact us.

Features

Contents

Requirements

The following are required:

Installation

  1. Download and un-zip the package.Read and accept the license included with the package
  2. Copy the file TCF/paypal.tcfinto a directory within the Witango Class Path. Verify that it is readable by the user under which witango runs on your system.
  3. Set up your keystore, which will contain files used to encrypt data sent to paypal. Take care that the keystore is kept secure.
    1. Copy the directory keystore to some location that is NOT publically accessible.
    2. Generate a private and public key pair within the keystore directory.
    3. Upload your public key to paypal (and optionally the paypal sandbox). Note the Certificate IDs provided by Paypal.
    4. Download paypal's public certificate (and optionally the paypal sandbox public certificate) into the keystore directory.
    5. edit the files ewp.sh (and optionaly sandbox.ewp.sh), replacing the string 'path/to/my/' with the actual path to the keystore directory. Verify that the path to openssl is correct.
  4. Configure the Class File
    1. Copy the TCF_config directory into the web root of each domain using paypal.tcf.
    2. Witango requires that this directory be within the webroot, but it is important to keep this private. Add the following stanza to the apache virtual host (or the .htaccess file):
      Deny from All
    3. Edit the file /TCF_config/paypal.conf, updating the instance variables keystore_path, the cert_id, sandbox.cert_id, and order_email with the values you use with paypal. The params instance variable can be left unchanged; it is the name of file which will contain the cleartext payload to be encrypted.

Using paypal.tcf

The paypal.tcf object must be instantiated within a witango application file. If instantiated in a persistent scope, make sure that it is not available to unauthorized users, domains or applications.

Creating a button

The make_buy_now_button method is used to create a paypal "Buy Now" button. This method take the following parameters:

Encrypting a payload

The ewp method uses the openssl library to encrypt a payload for PayPal encrypted web payments. This method takes the following parameters:

Example

The application file pp_buttontest.taf will generate a button using a parameter array defined in the appfile.
 
Home | Expertise | Featured Engagements | Clients | People | Sitemap

© 2001-2007 To the Point. All Rights Reserved. | Inquiries info@tothept.com