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
87
88
89
90
91
92
93
94
95
96
97
98
|
<?php /**************************************************** constants.php
This is the configuration file for the samples.This file defines the parameters needed to make an API call.
PayPal includes the following API Signature for making API calls to the PayPal sandbox:
API Username sdk-three_api1.sdk.com API Password QFZCWN5HZM8VBG7Q API Signature A.d9eRKfd1yVkRrtmMfCFLTqa6M9AyodL0SJkhYztxUi8W9pCXF6.4NI
Called by CallerService.php. ****************************************************/ /** # API user: The user that is identified as making the call. you can # also use your own API username that you created on PayPal�s sandbox # or the PayPal live site */ //for 3-token -> API_USERNAME,API_PASSWORD,API_SIGNATURE are needed
define('API_USERNAME', 'gsell_1323239795_biz_api1.onesolution.com.hk'); //
/** # API_password: The password associated with the API user # If you are using your own API username, enter the API password that # was generated by PayPal below # IMPORTANT - HAVING YOUR API PASSWORD INCLUDED IN THE MANNER IS NOT # SECURE, AND ITS ONLY BEING SHOWN THIS WAY FOR TESTING PURPOSES */
define('API_PASSWORD', '1323239817');
/** # API_Signature:The Signature associated with the API user. which is generated by paypal. */
define('API_SIGNATURE', 'AFcWxV21C7fd0v3bYYYRCpSSRl31A2Ni4PMlMO01P84TBKRiL0XIEELh');
/** # Endpoint: this is the server URL which you have to connect for submitting your API request. */
define('API_ENDPOINT', 'https://api-3t.sandbox.paypal.com/nvp');
/* # Third party Email address that you granted permission to make api call. */ define('SUBJECT',''); /*for permission APIs ->token, signature, timestamp are needed define('AUTH_TOKEN',"4oSymRbHLgXZVIvtZuQziRVVxcxaiRpOeOEmQw"); define('AUTH_SIGNATURE',"+q1PggENX0u+6vj+49tLiw9CLpA="); define('AUTH_TIMESTAMP',"1284959128"); */ /** USE_PROXY: Set this variable to TRUE to route all the API requests through proxy. like define('USE_PROXY',TRUE); */ define('USE_PROXY',FALSE); /** PROXY_HOST: Set the host name or the IP address of proxy server. PROXY_PORT: Set proxy port.
PROXY_HOST and PROXY_PORT will be read only if USE_PROXY is set to TRUE */ define('PROXY_HOST', '127.0.0.1'); define('PROXY_PORT', '808');
/* Define the PayPal URL. This is the URL that the buyer is first sent to to authorize payment with their paypal account change the URL depending if you are testing on the sandbox or going to the live PayPal site For the sandbox, the URL is https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token= For the live site, the URL is https://www.paypal.com/webscr&cmd=_express-checkout&token= */ define('PAYPAL_URL', 'https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=');
/** # Version: this is the API version in the request. # It is a mandatory parameter for each API request. # The only supported value at this time is 2.3 */
define('VERSION', '65.1');
// Ack related constants define('ACK_SUCCESS', 'SUCCESS'); define('ACK_SUCCESS_WITH_WARNING', 'SUCCESSWITHWARNING');
?>
|