This repository has been archived by the owner on Aug 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.php
113 lines (110 loc) · 3.58 KB
/
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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
return array(
/*
|--------------------------------------------------------------------------
| Account Number
|--------------------------------------------------------------------------
|
| The Merchant account number. Provided by Payex. Remember to set this,
| You wouldn't be able to run the script without it.
|
*/
'accountNumber' => '',
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| The encryption key. Accessable trough PayEx Admin. Remember to set this,
| You wouldn't be able to run the script without it.
|
*/
'encryptionKey' => '',
/*
|--------------------------------------------------------------------------
| Currency
|--------------------------------------------------------------------------
|
| What currency do you run you'r prices?
|
| Can be changed trough runtime! Just do
| Payex::setConfig('currency', '<currency>').
|
*/
'currency' => 'NOK',
/*
|--------------------------------------------------------------------------
| Default return URL
|--------------------------------------------------------------------------
|
| Where do you want to send the customers after a completed transaction?
|
| Btw, you can change it trough runtime! Just do:
| Payex::setConfig('returnURL', '<returnURL>');
|
*/
'returnURL' => 'http://test.no/?haha',
/*
|--------------------------------------------------------------------------
| Default cancel URL
|--------------------------------------------------------------------------
|
| Let's say a user cancels the transaction, where do you want to send the
| user?
|
| Btw, you can change it trough runtime! Just do:
| Payex::setConfig('cancelURL', '<cancelURL>');
|
*/
'cancelURL' => 'http://localhost/',
/*
|--------------------------------------------------------------------------
| Default VAT
|--------------------------------------------------------------------------
|
| Please set a default VAT, PayEx needs this to calculate a preview for the
| user.
|
| Btw, you can change it trough runtime! Just do:
| Payex::setConfig('vat', '<vat>');
|
| Example, if the vat is supposed to be 25%, its defined as 2500. It's as
| simple as that.
|
*/
'vat' => '2500',
/*
|--------------------------------------------------------------------------
| Client Language
|--------------------------------------------------------------------------
|
| The language used in the redirect purchase dialog with the client.
| Available languages depend on the merchant configuration.
|
| Supported languages:
| nb-NO, da-DK, en-US, sv-SE, es-ES, de-DE, fi-FI, fr-FR, pl-PL, cs-CZ, hu-HU
|
| If no language is specified, the default language for client UI is used.
|
| Btw, you can change it trough runtime! Just do:
| Payex::setConfig('vat', '<vat>');
|
*/
'clientLanguage' => 'nb-NO',
/*
|--------------------------------------------------------------------------
| PxOrderWSDL & PxConfinedWSDL
|--------------------------------------------------------------------------
|
| The URLs thats used to connect to PayEx, a set of 2 urls are needed.
| For simplicity we've added both the test URLs and production URLs.
|
*/
// Production Environment
#'PxOrderWSDL' => 'https://external.payex.com/pxorder/pxorder.asmx?wsdl',
#'PxConfinedWSDL' => 'https://confined.payex.com/PxConfined/pxorder.asmx?wsdl'
// Test Environment
'PxOrderWSDL' => 'https://test-external.payex.com/pxorder/pxorder.asmx?wsdl',
'PxConfinedWSDL' => 'https://test-confined.payex.com/PxConfined/pxorder.asmx?wsdl'
);
?>