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

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 +3 -4
  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
  /**
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.bf9d59c",
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",