@melio-eng/web-sdk 1.0.27-pr.54.5cf8a1f → 1.0.27-pr.54.de675d9

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -228,11 +228,10 @@ class PayFlow extends Flow {
228
228
  * Construct the specific flow URL for bill payment - now goes through /auth
229
229
  */
230
230
  constructFlowUrl(baseUrl) {
231
- const target = `/external-entries/payment-flow?externalOrigin=${this.partnerName}`;
232
- // Encode the target and billIds parameters
233
- const encodedTarget = encodeURIComponent(target);
234
231
  const billIdsParam = this.billIds.join(',');
235
- return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&target=${encodedTarget}&targetId=${encodeURIComponent(billIdsParam)}`;
232
+ const target = `/external-entries/payment-flow?billIds=${billIdsParam}&externalOrigin=${this.partnerName}`;
233
+ const encodedTarget = encodeURIComponent(target);
234
+ return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&target=${encodedTarget}`;
236
235
  }
237
236
  }
238
237
  /**
@@ -250,7 +249,7 @@ class SettingsFlow extends Flow {
250
249
  * Construct the specific flow URL for settings - now goes through /auth
251
250
  */
252
251
  constructFlowUrl(baseUrl) {
253
- const target = '/settings';
252
+ const target = '/view-settings';
254
253
  const encodedTarget = encodeURIComponent(target);
255
254
  return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&target=${encodedTarget}`;
256
255
  }
@@ -336,8 +335,6 @@ export class MelioSDK {
336
335
  setTimeout(() => {
337
336
  initFlow.initialize();
338
337
  console.log('InitFlow initialized successfully');
339
- if (options.keepAlive)
340
- initFlow.setupKeepAlive();
341
338
  }, 0);
342
339
  return initFlow;
343
340
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melio-eng/web-sdk",
3
- "version": "1.0.27-pr.54.5cf8a1f",
3
+ "version": "1.0.27-pr.54.de675d9",
4
4
  "description": "Melio Web SDK - Embed core Melio workflows directly into partner UI with minimal effort",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",