@opexa/portal-sdk 0.46.1 → 0.46.2

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/index.cjs CHANGED
@@ -8430,6 +8430,7 @@ var Sdk = class {
8430
8430
  */
8431
8431
  async createDeposit(input) {
8432
8432
  const id = input.id ?? objectId.ObjectId.generate(ObjectType.Deposit).toString();
8433
+ const environment = this.config.environment ?? "development";
8433
8434
  if (input.type === "MAYA") {
8434
8435
  const res = await this.walletService.createMayaDeposit({
8435
8436
  input: {
@@ -8469,7 +8470,7 @@ var Sdk = class {
8469
8470
  id,
8470
8471
  amount: input.amount.toString(),
8471
8472
  promo: input.promo,
8472
- redirectUrl: input.redirectUrl
8473
+ redirectUrl: `${ENDPOINTS[environment].opexapay}/aio/success?redirectUrl=${input.redirectUrl}`
8473
8474
  },
8474
8475
  reCAPTCHAResponse: input.reCAPTCHAResponse
8475
8476
  });
@@ -8481,7 +8482,7 @@ var Sdk = class {
8481
8482
  id,
8482
8483
  amount: input.amount.toString(),
8483
8484
  promo: input.promo,
8484
- redirectUrl: input.redirectUrl
8485
+ redirectUrl: `${ENDPOINTS[environment].opexapay}/aio/success?redirectUrl=${input.redirectUrl}`
8485
8486
  },
8486
8487
  reCAPTCHAResponse: input.reCAPTCHAResponse
8487
8488
  });
@@ -8493,7 +8494,7 @@ var Sdk = class {
8493
8494
  id,
8494
8495
  amount: input.amount.toString(),
8495
8496
  promo: input.promo,
8496
- redirectUrl: input.redirectUrl
8497
+ redirectUrl: `${ENDPOINTS[environment].opexapay}/aio/success?redirectUrl=${input.redirectUrl}`
8497
8498
  },
8498
8499
  reCAPTCHAResponse: input.reCAPTCHAResponse
8499
8500
  });
@@ -8505,7 +8506,7 @@ var Sdk = class {
8505
8506
  id,
8506
8507
  amount: input.amount.toString(),
8507
8508
  promo: input.promo,
8508
- redirectUrl: input.redirectUrl
8509
+ redirectUrl: `${ENDPOINTS[environment].opexapay}/aio/success?redirectUrl=${input.redirectUrl}`
8509
8510
  },
8510
8511
  reCAPTCHAResponse: input.reCAPTCHAResponse
8511
8512
  });
@@ -9419,7 +9420,8 @@ var ENDPOINTS = {
9419
9420
  portal: "https://portal.development.opexa.io/graphql",
9420
9421
  trigger: "https://trigger.development.opexa.io/graphql",
9421
9422
  static: "https://static.development.opexa.io",
9422
- cmsPortal: "https://portal-api.opexacms.io"
9423
+ cmsPortal: "https://portal-api.opexacms.io",
9424
+ opexapay: "https://external.opexapay.development.opexa.io"
9423
9425
  },
9424
9426
  production: {
9425
9427
  auth: "https://auth.opexa.io",
@@ -9431,7 +9433,8 @@ var ENDPOINTS = {
9431
9433
  portal: "https://portal.opexa.io/graphql",
9432
9434
  trigger: "https://trigger.opexa.io/graphql",
9433
9435
  static: "https://static.atalos.io",
9434
- cmsPortal: "https://portal-api.opexacms.io"
9436
+ cmsPortal: "https://portal-api.opexacms.io",
9437
+ opexapay: "https://external.opexapay.opexa.io"
9435
9438
  }
9436
9439
  };
9437
9440