-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.js
65 lines (63 loc) · 2.9 KB
/
index.js
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
'use strict'
function nestpay(value) {
this.config = {
name: value.name || '',
password: value.password || '',
clientId: value.clientId || '',
storekey: value.storekey || '',
storetype: value.storetype || '3d',
mode: value.mode || 'P',
currency: value.currency || 'USD',
orderId: value.orderId || 'Auto',
callbackSuccess: value.callbackSuccess || '',
callbackFail: value.callbackFail || '',
secureFormat: value.secureFormat || '',
processType: value.processType || 'Auth',
endpoint: value.endpoint || 'asseco',
endpoints: {
test: 'https://testvpos.asseco-see.com.tr/fim/api',
asseco: 'https://entegrasyon.asseco-see.com.tr/fim/api',
isbank: 'https://vpos3.isbank.com.tr/fim/api',
akbank: 'https://www.sanalakpos.com/fim/api',
finansbank: 'https://www.fbwebpos.com/fim/api',
denizbank: 'https://denizbank.est.com.tr/fim/api',
kuveytturk: 'https://kuveytturk.est.com.tr/fim/api',
halkbank: 'https://sanalpos.halkbank.com.tr/fim/api',
anadolubank: 'https://anadolusanalpos.est.com.tr/fim/api',
hsbc: 'https://vpos.advantage.com.tr/fim/api',
ziraatbank: 'https://sanalpos2.ziraatbank.com.tr/fim/api',
ingbank: 'https://sanalpos.ingbank.com.tr/fim/api',
citibank: 'https://citibank.est.com.tr/fim/api',
cardplus: 'https://cardplus.est.com.tr/fim/api',
teb: 'https://sanalpos.teb.com.tr/fim/api',
},
endpoints3d: {
test: 'https://testvpos.asseco-see.com.tr/fim/est3Dgate',
asseco: 'https://entegrasyon.asseco-see.com.tr/fim/est3Dgate',
isbank: 'https://vpos3.isbank.com.tr/fim/est3Dgate',
akbank: 'https://www.sanalakpos.com/fim/est3Dgate',
finansbank: 'https://www.fbwebpos.com/fim/est3Dgate',
denizbank: 'https://denizbank.est.com.tr/fim/est3Dgate',
kuveytturk: 'https://kuveytturk.est.com.tr/fim/est3Dgate',
halkbank: 'https://sanalpos.halkbank.com.tr/fim/est3Dgate',
anadolubank: 'https://anadolusanalpos.est.com.tr/fim/est3Dgate',
hsbc: 'https://vpos.advantage.com.tr/fim/est3Dgate',
ziraatbank: 'https://sanalpos2.ziraatbank.com.tr/fim/est3Dgate',
ingbank: 'https://sanalpos.ingbank.com.tr/fim/est3Dgate',
citibank: 'https://citibank.est.com.tr/fim/est3Dgate',
cardplus: 'https://cardplus.est.com.tr/fim/est3Dgate',
teb: 'https://sanalpos.teb.com.tr/fim/est3Dgate',
},
lang: value.lang || 'tr',
}
}
require('./methods/purchase')(nestpay)
require('./methods/authorize')(nestpay)
require('./methods/void')(nestpay)
require('./methods/refund')(nestpay)
require('./methods/capture')(nestpay)
require('./methods/secure3d')(nestpay)
require('./methods/securePurchase')(nestpay)
require('./methods/secureAuthorize')(nestpay)
require('./methods/request')(nestpay)
module.exports = nestpay