@diviswap/sdk 1.7.24 → 1.7.25
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/dist/cli/index.js
CHANGED
|
@@ -140,12 +140,13 @@ export function DiviswapKYC({
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
// Call your KYC submission API
|
|
143
|
+
// Use submitKYC (not registerCustomer) since shadow user is already created by partner HMAC auth
|
|
143
144
|
const response = await fetch('/api/diviswap', {
|
|
144
145
|
method: 'POST',
|
|
145
146
|
headers: { 'Content-Type': 'application/json' },
|
|
146
|
-
body: JSON.stringify({
|
|
147
|
-
action: '
|
|
148
|
-
...kycData
|
|
147
|
+
body: JSON.stringify({
|
|
148
|
+
action: 'submitKYC',
|
|
149
|
+
...kycData
|
|
149
150
|
}),
|
|
150
151
|
});
|
|
151
152
|
|
package/package.json
CHANGED
|
@@ -140,12 +140,13 @@ export function DiviswapKYC({
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
// Call your KYC submission API
|
|
143
|
+
// Use submitKYC (not registerCustomer) since shadow user is already created by partner HMAC auth
|
|
143
144
|
const response = await fetch('/api/diviswap', {
|
|
144
145
|
method: 'POST',
|
|
145
146
|
headers: { 'Content-Type': 'application/json' },
|
|
146
|
-
body: JSON.stringify({
|
|
147
|
-
action: '
|
|
148
|
-
...kycData
|
|
147
|
+
body: JSON.stringify({
|
|
148
|
+
action: 'submitKYC',
|
|
149
|
+
...kycData
|
|
149
150
|
}),
|
|
150
151
|
});
|
|
151
152
|
|