-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfig.php
30 lines (21 loc) · 939 Bytes
/
config.php
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
<?php
//start session in all pages
if (session_status() == PHP_SESSION_NONE) { session_start(); } //PHP >= 5.4.0
//if(session_id() == '') { session_start(); } //uncomment this line if PHP < 5.4.0 and comment out line above
// sandbox or live
define('PPL_MODE', 'sandbox');
if(PPL_MODE=='sandbox'){
define('PPL_API_USER', 'somepaypal_api.yahoo.co.uk');
define('PPL_API_PASSWORD', '123456789');
define('PPL_API_SIGNATURE', 'opupouopupo987kkkhkixlksjewNyJ2pEq.Gufar');
}
else{
define('PPL_API_USER', 'somepaypal_api.yahoo.co.uk');
define('PPL_API_PASSWORD', '123456789');
define('PPL_API_SIGNATURE', 'opupouopupo987kkkhkixlksjewNyJ2pEq.Gufar');
}
define('PPL_LANG', 'EN');
define('PPL_LOGO_IMG', 'http://url/to/site/logo.png');
define('PPL_RETURN_URL', 'http://localhost/paypal/process.php');
define('PPL_CANCEL_URL', 'http://localhost/paypal/cancel_url.php');
define('PPL_CURRENCY_CODE', 'EUR');