-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
34 lines (27 loc) · 896 Bytes
/
config.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
var Paypal = require('paypal-adaptive');
exports.paypalSdk = new Paypal({
userId: 'fgodino-facilitator_api1.conwet.com',
password: '1393406466',
signature: 'AFcWxV21C7fd0v3bYYYRCpSSRl31A.PvcB540JuOwarAlLA9XzZuUnrX',
sandbox: true //defaults to false
});
exports.payload = payload = {
currencyCode: 'EUR',
customerId: "Tienda de prueba OIL",
returnUrl: 'http://concept-paypal.herokuapp.com',
cancelUrl: 'http://concept-paypal.herokuapp.com',
ipnNotificationUrl: 'http://concept-paypal.herokuapp.com/ipn_listener',
requestEnvelope: {
errorLanguage: 'es_ES'
}
}
exports.getPayload = function(partialPayload){
var res = {};
for(var i in payload){
res[i] = payload[i];
}
for(var i in partialPayload){
res[i] = partialPayload[i];
}
return res;
}