@kumbify/sdk 1.2.0 → 1.2.1

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.
@@ -27,7 +27,7 @@ class KPaymentClient {
27
27
  async makeStripePayment({ ...data }) {
28
28
  try {
29
29
  const response = await (0, api_1.fetchRequest)({
30
- url: `${helpers_1.APP_CONFIG.PAYMENT.API_BASE_URL}/pay/${this.config.provider.international.seller}`,
30
+ url: `${helpers_1.APP_CONFIG.PAYMENT.API_BASE_URL}/${this.config.provider.international.seller}`,
31
31
  method: "post",
32
32
  body: data,
33
33
  headers: {
@@ -44,7 +44,7 @@ class KPaymentClient {
44
44
  async makeCryptoPayment({ ...data }) {
45
45
  try {
46
46
  const response = await (0, api_1.fetchRequest)({
47
- url: `${helpers_1.APP_CONFIG.PAYMENT.API_BASE_URL}/pay/${this.config.provider.international.seller}`,
47
+ url: `${helpers_1.APP_CONFIG.PAYMENT.API_BASE_URL}/${this.config.provider.international.seller}`,
48
48
  method: "post",
49
49
  body: data,
50
50
  headers: {
@@ -71,7 +71,7 @@ class KPaymentClient {
71
71
  message: this.config.api.lang == "en" ? message.en : message.pt,
72
72
  });
73
73
  }
74
- const url = `${helpers_1.APP_CONFIG.PAYMENT.API_BASE_URL}/pay/${this.config.provider.angolan}`;
74
+ const url = `${helpers_1.APP_CONFIG.PAYMENT.API_BASE_URL}/${this.config.provider.angolan}`;
75
75
  const response = await (0, api_1.fetchRequest)({
76
76
  url: url,
77
77
  method: "post",
@@ -8,7 +8,7 @@ exports.APP_CONFIG = {
8
8
  API_BASE_URL: "https://8n8.kumbify.com/api/",
9
9
  },
10
10
  PAYMENT: {
11
- API_BASE_URL: "https://oi.kumbify.com/api/pai",
11
+ API_BASE_URL: "https://oi.kumbify.com/api/pay",
12
12
  },
13
13
  };
14
14
  //# sourceMappingURL=helpers.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumbify/sdk",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Oficial Kumbify SDK to integrate our services in your applications",
5
5
  "homepage": "https://github.com/kumbify-oficial/kumbi-sdk#readme",
6
6
  "bugs": {