Changeset 2322

Show
Ignore:
Timestamp:
03/19/08 11:22:39 (5 months ago)
Author:
zombor
Message:

Adding Paypal Payments Pro support to Payment Library. Fixes #502.

Location:
trunk/system
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/config/payment.php

    r1668 r2322  
    9191    'CURRENCYCODE' => 'USD' 
    9292); 
     93 
     94/** 
     95 * PayPalpro Options: 
     96 *  USER      - API user name to use 
     97 *  PWD       - API password to use 
     98 *  SIGNATURE - API signature to use 
     99 * 
     100 *  ENDPOINT  - API url used by live transaction 
     101 * 
     102 *  SANDBOX_USER      - User name used in test mode 
     103 *  SANDBOX_PWD       - Pass word used in test mode 
     104 *  SANDBOX_SIGNATURE - Security signiature used in test mode 
     105 *  SANDBOX_ENDPOINT  - API url used for test mode transaction 
     106 * 
     107 *  VERSION   - API version to use 
     108 *  CURRENCYCODE - can only currently be USD 
     109 * 
     110 */ 
     111$config['Paypalpro'] = array 
     112( 
     113 
     114    'USER'         => '-your-paypal-api-username', 
     115    'PWD'          => '-your-paypal-api-password', 
     116    'SIGNATURE'    => '-your-paypal-api-security-signiature', 
     117    'ENDPOINT'     => 'https://api-3t.paypal.com/nvp', 
     118 
     119    // -- sandbox authorization details are generic 
     120    'SANDBOX_USER'      => 'sdk-three_api1.sdk.com', 
     121    'SANDBOX_PWD'       => 'QFZCWN5HZM8VBG7Q', 
     122    'SANDBOX_SIGNATURE' => 'A.d9eRKfd1yVkRrtmMfCFLTqa6M9AyodL0SJkhYztxUi8W9pCXF6.4NI', 
     123    'SANDBOX_ENDPOINT'  => 'https://api-3t.sandbox.paypal.com/nvp', 
     124 
     125    'VERSION'      => '3.2', 
     126    'CURRENCYCODE' => 'USD', 
     127 
     128    'curl_config'  => array 
     129    ( 
     130        CURLOPT_HEADER         => FALSE, 
     131        CURLOPT_SSL_VERIFYPEER => FALSE, 
     132        CURLOPT_SSL_VERIFYHOST => FALSE, 
     133        CURLOPT_VERBOSE        => TRUE, 
     134        CURLOPT_RETURNTRANSFER => TRUE, 
     135        CURLOPT_POST           => TRUE 
     136    ) 
     137 
     138);