1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/** * Sandbox / Test Mode * ------------------- * * TRUE means you'll be hitting PayPal's sandbox/test servers. FALSE means you'll be hitting the live servers. */ $config['Sandbox'] = TRUE;
/** * PayPal API Version * -------------------------- * * The library is currently using PayPal API version 119.0. * You may adjust this value here and then pass it into the PayPal object when you create it within your scripts to override if necessary. */ $config['APIVersion'] = '123.0';
/** * PayPal Gateway API Credentials * ------------------------------ * * These are your PayPal API credentials for working with the PayPal gateway directly. * These are used any time you're using the parent PayPal class within the library. * * We're using shorthand if/else statements here to set both Sandbox and Production values. * Your sandbox values go on the left and your live values go on the right. * * We have included our sandbox seller account credentials here so the demo will work right away. * If you have your own sandbox account you may simply replace these values with your own. * * You may obtain live credentials by logging into the following with your PayPal account: * https://www.paypal.com/us/cgi-bin/webscr?cmd=_login-api-run */ $config['APIUsername'] = $config['Sandbox'] ? 'gsell_1323239795_biz_api1.onesolution.com.hk' : 'PRODUCTION_USERNAME_GOGES_HERE'; $config['APIPassword'] = $config['Sandbox'] ? '1323239817' : 'PRODUCTION_PASSWORD_GOGES_HERE'; $config['APISignature'] = $config['Sandbox'] ? 'AFcWxV21C7fd0v3bYYYRCpSSRl31A2Ni4PMlMO01P84TBKRiL0XIEELh' : 'PRODUCTION_SIGNATURE_GOGES_HERE';
/** * Payflow Gateway API Credentials * * NOTE: PayFlow credentials are only required for PayFlow specific demo kits. * ------------------------------- * * These are the credentials you use for your PayPal Manager: http://manager.paypal.com * These are used when you're working with the PayFlow child class. * * We're using shorthand if/else statements here to set both Sandbox and Production values. * Your sandbox values go on the left and your live values go on the right. * * You may use the same credentials you use to login to your PayPal Manager, * or you may create API specific credentials from within your PayPal Manager account. */ $config['PayFlowUsername'] = $config['Sandbox'] ? 'tester' : ''; $config['PayFlowPassword'] = $config['Sandbox'] ? 'Pr0t3ct!' : ''; $config['PayFlowVendor'] = $config['Sandbox'] ? 'angelleye' : ''; $config['PayFlowPartner'] = $config['Sandbox'] ? 'PayPal' : 'PayPal';
/** * PayPal Adaptive Payments * * NOTE: These settings are only required for Adaptive Payments specific demo kits. * ---------------------------------- * * You obtain your application ID but submitting it for approval within your * developer account at http://developer.paypal.com * * We're using shorthand if/else statements here to set both Sandbox and Production values. * Your sandbox values go on the left and your live values go on the right. * The sandbox value included here is a global value provided for developrs to use in the PayPal sandbox. */ $config['ApplicationID'] = $config['Sandbox'] ? 'APP-80W284485P519543T' : 'PRODUCTION_APP_ID_GOES_HERE'; $config['DeviceID'] = ''; $config['DeviceIpAddress'] = $_SERVER['REMOTE_ADDR'];
/** * PayPal Developer Account Email Address * This is the email address that you use to sign in to http://developer.paypal.com */ $config['DeveloperEmailAccount'] = 'some@email.com';
/* End of file paypal_sample.php */ /* Location: ./system/application/config/paypal_sample.php */
|