@smartsoft001/paypal 2.127.0 → 2.129.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +11 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5,8 +5,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
5
5
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
6
|
if (decorator = decorators[i])
|
|
7
7
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
-
if (kind && result)
|
|
9
|
-
__defProp(target, key, result);
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
10
9
|
return result;
|
|
11
10
|
};
|
|
12
11
|
|
|
@@ -21,6 +20,13 @@ var PaypalConfig = class {
|
|
|
21
20
|
this.cancelUrl = cancelUrl;
|
|
22
21
|
this.test = test;
|
|
23
22
|
}
|
|
23
|
+
clientId;
|
|
24
|
+
clientSecret;
|
|
25
|
+
currencyCode;
|
|
26
|
+
returnUrl;
|
|
27
|
+
apiUrl;
|
|
28
|
+
cancelUrl;
|
|
29
|
+
test;
|
|
24
30
|
};
|
|
25
31
|
var PAYPAL_CONFIG_PROVIDER = "PAYPAL_CONFIG_PROVIDER";
|
|
26
32
|
var IPaypalConfigProvider = class {
|
|
@@ -35,6 +41,9 @@ var PaypalService = class {
|
|
|
35
41
|
this.config = config;
|
|
36
42
|
this.moduleRef = moduleRef;
|
|
37
43
|
}
|
|
44
|
+
httpService;
|
|
45
|
+
config;
|
|
46
|
+
moduleRef;
|
|
38
47
|
async create(obj) {
|
|
39
48
|
const config = await this.getConfig(obj.data);
|
|
40
49
|
const data = {
|