idpay-b2b-sdk 0.0.20 → 0.0.21
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.cjs +7 -2
- package/index.js +7 -2
- package/package.json +2 -2
package/index.cjs
CHANGED
|
@@ -98,29 +98,34 @@
|
|
|
98
98
|
});
|
|
99
99
|
const startPayFlow = ({
|
|
100
100
|
transactionId,
|
|
101
|
+
token,
|
|
101
102
|
onFinish
|
|
102
103
|
}) => {
|
|
103
104
|
console.log('startPayFlow', {
|
|
104
105
|
transactionId,
|
|
106
|
+
token,
|
|
105
107
|
onFinish
|
|
106
108
|
});
|
|
107
109
|
if (!_initialized) {
|
|
108
110
|
_openWhileInitializing = {
|
|
109
111
|
transactionId,
|
|
112
|
+
token,
|
|
110
113
|
onFinish
|
|
111
114
|
};
|
|
112
115
|
return;
|
|
113
116
|
}
|
|
114
117
|
IDPaySDKAssets.trackEvent(IDPaySDKAssets.EVENT_TYPES.START_FLOW, {
|
|
115
|
-
transactionId
|
|
118
|
+
transactionId,
|
|
119
|
+
token
|
|
116
120
|
});
|
|
117
121
|
if (_type === TYPE__IFRAME) {
|
|
118
122
|
IDPaySDKAssets.clientBoxControl.open({
|
|
119
123
|
transactionId,
|
|
124
|
+
token,
|
|
120
125
|
onFinish
|
|
121
126
|
});
|
|
122
127
|
} else {
|
|
123
|
-
IDPaySDKAssets.clientBoxControl.redirect(transactionId);
|
|
128
|
+
IDPaySDKAssets.clientBoxControl.redirect(transactionId, token);
|
|
124
129
|
}
|
|
125
130
|
};
|
|
126
131
|
const IDPaySDK = {
|
package/index.js
CHANGED
|
@@ -59,29 +59,34 @@ const init = async options => {
|
|
|
59
59
|
};
|
|
60
60
|
const startPayFlow = ({
|
|
61
61
|
transactionId,
|
|
62
|
+
token,
|
|
62
63
|
onFinish
|
|
63
64
|
}) => {
|
|
64
65
|
console.log('startPayFlow', {
|
|
65
66
|
transactionId,
|
|
67
|
+
token,
|
|
66
68
|
onFinish
|
|
67
69
|
});
|
|
68
70
|
if (!_initialized) {
|
|
69
71
|
_openWhileInitializing = {
|
|
70
72
|
transactionId,
|
|
73
|
+
token,
|
|
71
74
|
onFinish
|
|
72
75
|
};
|
|
73
76
|
return;
|
|
74
77
|
}
|
|
75
78
|
IDPaySDKAssets.trackEvent(IDPaySDKAssets.EVENT_TYPES.START_FLOW, {
|
|
76
|
-
transactionId
|
|
79
|
+
transactionId,
|
|
80
|
+
token
|
|
77
81
|
});
|
|
78
82
|
if (_type === TYPE__IFRAME) {
|
|
79
83
|
IDPaySDKAssets.clientBoxControl.open({
|
|
80
84
|
transactionId,
|
|
85
|
+
token,
|
|
81
86
|
onFinish
|
|
82
87
|
});
|
|
83
88
|
} else {
|
|
84
|
-
IDPaySDKAssets.clientBoxControl.redirect(transactionId);
|
|
89
|
+
IDPaySDKAssets.clientBoxControl.redirect(transactionId, token);
|
|
85
90
|
}
|
|
86
91
|
};
|
|
87
92
|
const IDPaySDK = {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "idpay-b2b-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/acesso-io/
|
|
7
|
+
"url": "https://github.com/acesso-io/frontend.git",
|
|
8
8
|
"directory": "libs/pay/sdk/idpay-b2b-sdk"
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|