@diviswap/sdk 1.7.24 → 1.7.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diviswap/sdk",
3
- "version": "1.7.24",
3
+ "version": "1.7.26",
4
4
  "description": "Official Diviswap SDK - Crypto rails made simple",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -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: 'registerCustomer',
148
- ...kycData
147
+ body: JSON.stringify({
148
+ action: 'submitKYC',
149
+ ...kycData
149
150
  }),
150
151
  });
151
152