root/trunk/system/config/payment.php

Revision 3326, 4.5 kB (checked in by Shadowhand, 3 weeks ago)

Core cleanup:

  • Removed SYSPATH check from all files
  • Changed copyrights to 2007-2008 where they had not been updated
  • Started to add @example doc comments
  • Property svn:eol-style set to LF
  • Property copyright set to Copyright (c) 2007 Kohana Team
  • Property svn:keywords set to Id
Line 
1<?php
2/**
3 * @package  Payment
4 *
5 * Settings related to the Payment library.
6 * This file has settings for each driver.
7 * You should copy the 'default' and the specific
8 * driver you are working with to your application/config/payment.php file.
9 *
10 * Options:
11 *  driver - default driver to use
12 *  test_mode - Turn TEST MODE on or off
13 *  curl_settings - Set any custom cURL settings here. These defaults usualy work well.
14 *                  see http://us.php.net/manual/en/function.curl-setopt.php for details
15 */
16$config['default'] = array
17(
18    'driver'        => 'Authorize',
19    'test_mode'     => TRUE,
20    'curl_config'   => array(CURLOPT_HEADER         => FALSE,
21                             CURLOPT_RETURNTRANSFER => TRUE,
22                             CURLOPT_SSL_VERIFYPEER => FALSE)
23);
24
25/**
26 * Authorize.net Options:
27 *  auth_net_login_id - the transaction login ID; provided by gateway provider
28 *  auth_net_tran_key - the transaction key; provided by gateway provider
29 */
30$config['Authorize'] = array
31(
32    'auth_net_login_id' => '',
33    'auth_net_tran_key' => ''
34);
35
36/**
37 * YourPay.net Options:
38 *  merchant_id - the merchant ID number
39 *  certificate - the location on your server of the certificate file.
40 */
41$config['Yourpay'] = array
42(
43    'merchant_id' => '',
44    'certificate' => './path/to/certificate.pem'
45);
46
47/**
48 * TrustCommerce Options:
49 *  custid - the customer ID assigned to you by TrustCommerce
50 *  password - the password assigned to you by TrustCommerce
51 *  media - "cc" for credit card or "ach" for ACH.
52 *  tclink_library - the location of the tclink library (relative to your index file) you need to compile to get this driver to work.
53 */
54$config['Trustcommerce'] = array
55(
56    'custid' => '',
57    'password' => '',
58    'media' => 'cc',
59    'tclink_library' => './path/to/library.so'
60);
61
62/**
63 * TridentGateway Options:
64 *  profile_id - the profile ID assigned to you by Merchant e-Services
65 *  profile_key - the profile password assigned to you by Merchant e-Services
66 *  transaction_type - D=Sale, C=Credit, P=Pre-Auth, O=Offline, V-Void, S=Settle Pre-Auth, U=Refund, T= Store card data., X=Delete Card Store Data
67 */
68$config['Trident'] = array
69(
70    'profile_id' => '',
71    'profile_key' => '',
72    'transaction_type' => 'D'
73);
74
75/**
76 * PayPal Options:
77 *  API_UserName - the username to use
78 *  API_Password - the password to use
79 *  API_Signature - the api signature to use
80 *  ReturnUrl - the URL to send the user to after they login with paypal
81 *  CANCELURL - the URL to send the user to if they cancel the paypal transaction
82 *  CURRENCYCODE - the Currency Code to to the transactions in (What do you want to get paid in?)
83 */
84$config['Paypal'] = array
85(
86    'USER'         => '-your-paypal-api-username',
87    'PWD'          => '-your-paypal-api-password',
88    'SIGNATURE'    => '-your-paypal-api-security-signiature',
89    'ENDPOINT'     => 'https://api-3t.paypal.com/nvp',
90
91    'RETURNURL'     => 'http://yoursite.com',
92    'CANCELURL'     => 'http://yoursite.com/canceled',
93
94    // -- sandbox authorization details are generic
95    'SANDBOX_USER'      => 'sdk-three_api1.sdk.com',
96    'SANDBOX_PWD'       => 'QFZCWN5HZM8VBG7Q',
97    'SANDBOX_SIGNATURE' => 'A.d9eRKfd1yVkRrtmMfCFLTqa6M9AyodL0SJkhYztxUi8W9pCXF6.4NI',
98    'SANDBOX_ENDPOINT'  => 'https://api-3t.sandbox.paypal.com/nvp',
99
100    'VERSION'      => '3.2',
101    'CURRENCYCODE' => 'USD',
102);
103
104/**
105 * PayPalpro Options:
106 *  USER      - API user name to use
107 *  PWD       - API password to use
108 *  SIGNATURE - API signature to use
109 *
110 *  ENDPOINT  - API url used by live transaction
111 *
112 *  SANDBOX_USER      - User name used in test mode
113 *  SANDBOX_PWD       - Pass word used in test mode
114 *  SANDBOX_SIGNATURE - Security signiature used in test mode
115 *  SANDBOX_ENDPOINT  - API url used for test mode transaction
116 *
117 *  VERSION   - API version to use
118 *  CURRENCYCODE - can only currently be USD
119 *
120 */
121$config['Paypalpro'] = array
122(
123
124    'USER'         => '-your-paypal-api-username',
125    'PWD'          => '-your-paypal-api-password',
126    'SIGNATURE'    => '-your-paypal-api-security-signiature',
127    'ENDPOINT'     => 'https://api-3t.paypal.com/nvp',
128
129    // -- sandbox authorization details are generic
130    'SANDBOX_USER'      => 'sdk-three_api1.sdk.com',
131    'SANDBOX_PWD'       => 'QFZCWN5HZM8VBG7Q',
132    'SANDBOX_SIGNATURE' => 'A.d9eRKfd1yVkRrtmMfCFLTqa6M9AyodL0SJkhYztxUi8W9pCXF6.4NI',
133    'SANDBOX_ENDPOINT'  => 'https://api-3t.sandbox.paypal.com/nvp',
134
135    'VERSION'      => '3.2',
136    'CURRENCYCODE' => 'USD',
137
138    'curl_config'  => array
139    (
140        CURLOPT_HEADER         => FALSE,
141        CURLOPT_SSL_VERIFYPEER => FALSE,
142        CURLOPT_SSL_VERIFYHOST => FALSE,
143        CURLOPT_VERBOSE        => TRUE,
144        CURLOPT_RETURNTRANSFER => TRUE,
145        CURLOPT_POST           => TRUE
146    )
147
148);
Note: See TracBrowser for help on using the browser.