refacil-pay-mcp 1.1.4 → 1.1.7
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/README.md +136 -30
- package/dist/config.d.ts +1 -0
- package/dist/config.js +2 -0
- package/dist/config.js.map +1 -1
- package/dist/core/resources.js +25 -18
- package/dist/core/resources.js.map +1 -1
- package/dist/core/tools.d.ts +1 -1
- package/dist/core/tools.js +38 -35
- package/dist/core/tools.js.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -220,8 +220,6 @@ This service allows security validation for the execution of a transaction on th
|
|
|
220
220
|
|
|
221
221
|
> The generated token is single-use for each transaction and cannot be consumed more than once. In addition, the transactional token will be valid for 60 seconds.
|
|
222
222
|
|
|
223
|
-
Generates a transactional token for payment link service.
|
|
224
|
-
|
|
225
223
|
**Parámetros:**
|
|
226
224
|
|
|
227
225
|
| Name | Type | Description |
|
|
@@ -240,8 +238,6 @@ This service allows security validation for the execution of a transaction on th
|
|
|
240
238
|
|
|
241
239
|
> The generated token is single-use for each transaction and cannot be consumed more than once. In addition, the transactional token will be valid for 60 seconds.
|
|
242
240
|
|
|
243
|
-
Generates a transactional token for payment method service.
|
|
244
|
-
|
|
245
241
|
**Parámetros:**
|
|
246
242
|
|
|
247
243
|
| Name | Type | Description |
|
|
@@ -260,8 +256,6 @@ This service allows security validation for the execution of a transaction on th
|
|
|
260
256
|
|
|
261
257
|
> The generated token is single-use for each transaction and cannot be consumed more than once. In addition, the transactional token will be valid for 60 seconds.
|
|
262
258
|
|
|
263
|
-
Generates a transactional token for withdraw service.
|
|
264
|
-
|
|
265
259
|
**Parámetros:**
|
|
266
260
|
|
|
267
261
|
| Name | Type | Description |
|
|
@@ -280,8 +274,6 @@ This service allows security validation for the execution of a transaction on th
|
|
|
280
274
|
|
|
281
275
|
> The generated token is single-use for each transaction and cannot be consumed more than once. In addition, the transactional token will be valid for 60 seconds.
|
|
282
276
|
|
|
283
|
-
Generates a transactional token for creating merchant keys.
|
|
284
|
-
|
|
285
277
|
**Parámetros:**
|
|
286
278
|
|
|
287
279
|
| Name | Type | Description |
|
|
@@ -300,8 +292,6 @@ This service allows security validation for the execution of a transaction on th
|
|
|
300
292
|
|
|
301
293
|
> The generated token is single-use for each transaction and cannot be consumed more than once. In addition, the transactional token will be valid for 60 seconds.
|
|
302
294
|
|
|
303
|
-
Generates a transactional token for canceling merchant keys.
|
|
304
|
-
|
|
305
295
|
**Parámetros:**
|
|
306
296
|
|
|
307
297
|
| Name | Type | Description |
|
|
@@ -367,9 +357,11 @@ The table below lists the available payment methods along with their correspondi
|
|
|
367
357
|
| `155` | Cash-in via **Transfiya Recaudo** | 43,200 |
|
|
368
358
|
| `163` | Cash-in via **TPaga** | 43,200 |
|
|
369
359
|
| `248` | Cash-in via **QR Interoperable** | N/A |
|
|
360
|
+
| `250` | Cash-in via **Llaves Bre-B** | 300 |
|
|
361
|
+
| `273` | Cash-in via **Tarjetas** (Débito y Crédito) | 3,600 |
|
|
370
362
|
|
|
371
363
|
> ⚠ **Important:**
|
|
372
|
-
The value provided in the
|
|
364
|
+
The value provided in the expiresIn field **must be greater than or equal** to the minimum expiration defined for the selected payment method. **This does not apply to dynamic keys, which always expire 5 minutes after creation.**
|
|
373
365
|
|
|
374
366
|
|
|
375
367
|
---
|
|
@@ -626,27 +618,141 @@ This is **not** an error in our platform.
|
|
|
626
618
|
|
|
627
619
|
---
|
|
628
620
|
|
|
629
|
-
|
|
621
|
+
### **Llaves** Dinámicas **Bre-B**
|
|
622
|
+
|
|
623
|
+
For this method, the following fields are **required**:
|
|
624
|
+
|
|
625
|
+
- `cellphone`
|
|
626
|
+
|
|
627
|
+
- `docNumber`
|
|
628
|
+
|
|
629
|
+
- `docType`
|
|
630
|
+
|
|
631
|
+
- `merchantId`
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
You may retrieve this data through the `enrollment-data` service in the [Merchant Enrollment](https://documenter.getpostman.com/view/35146358/2sA3QpDEFA#8c9f5a18-a19a-4b8f-baba-cd7501aa29a0) section.
|
|
635
|
+
|
|
636
|
+
> ⚠ **Prerequisite:**
|
|
637
|
+
The merchant must complete the **Merchant Enrollment** process before using this method.
|
|
638
|
+
See the _Merchant Enrollment_ section for setup details.
|
|
639
|
+
|
|
640
|
+
> 🔁 **Open Resource:**
|
|
641
|
+
The **Llaves Dinamicas Bre-B** operates as an _open resource_, meaning the generated KEY can be used multiple times by the same user.
|
|
642
|
+
|
|
643
|
+
> ⚙️ **Technical Note — Dynamic Key Behavior:**
|
|
644
|
+
Dynamic keys may receive multiple money transfers due to current limitations in the Redeban system.
|
|
645
|
+
This behavior does not represent an error or malfunction in our platform.
|
|
646
|
+
**Additionally, dynamic keys have a fixed validity period of 5 minutes, and this duration cannot be modified.**
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
#### Behavior Details
|
|
650
|
+
|
|
651
|
+
- Redeban does not automatically invalidate a dynamic KEY after its first send.
|
|
652
|
+
|
|
653
|
+
- As a result, the same KEY may generate multiple transaction records.
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
#### Recommendations
|
|
657
|
+
|
|
658
|
+
- Implement **application-level validation** to detect multiple payments from the same KEY.
|
|
659
|
+
|
|
660
|
+
- Monitor dynamic KEY transactions and confirm status before marking payments as completed.
|
|
661
|
+
|
|
662
|
+
- Inform end-users to verify the success of a transaction before rescanning.
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
#### Future Considerations
|
|
666
|
+
|
|
667
|
+
- Stay updated with interoperability provider announcements to adjust integrations accordingly.
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
``` json
|
|
671
|
+
"paymentMethod": {
|
|
672
|
+
"id": 250,
|
|
673
|
+
"cellphone": "string",
|
|
674
|
+
"docType": "string",
|
|
675
|
+
"docNumber": "string",
|
|
676
|
+
"merchantId": "string"
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
```
|
|
680
|
+
|
|
681
|
+
---
|
|
682
|
+
|
|
683
|
+
### **Card Payments**
|
|
684
|
+
|
|
685
|
+
This payment method allows processing payments with debit and credit cards (Mastercard and Visa).
|
|
686
|
+
|
|
687
|
+
For this method, the following fields are **required**:
|
|
688
|
+
|
|
689
|
+
- `id`: 273
|
|
690
|
+
|
|
691
|
+
- `description`: Description of the payment detail that will be displayed in the payment link
|
|
692
|
+
|
|
693
|
+
- `external`: Defines the type of link generated
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
#### PaymentMethod Parameters
|
|
630
697
|
|
|
631
698
|
| **Field** | **Type** | **Required** | **Description** |
|
|
632
699
|
| --- | --- | --- | --- |
|
|
633
|
-
| `
|
|
634
|
-
| `
|
|
635
|
-
| `
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
|
640
|
-
|
|
|
641
|
-
| `
|
|
642
|
-
| `
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
700
|
+
| `id` | number | ✅ | Payment method ID: 273 |
|
|
701
|
+
| `description` | string | ✅ | Description of the payment detail that will be displayed in the payment link |
|
|
702
|
+
| `external` | boolean | ✅ | Defines whether to generate a payment link to send directly to the client (`true`) or to embed in an iframe (`false`) |
|
|
703
|
+
|
|
704
|
+
#### Behavior based on the `external` parameter
|
|
705
|
+
|
|
706
|
+
| **Value** | **Description** |
|
|
707
|
+
| --- | --- |
|
|
708
|
+
| `true` | Generates a payment link to send directly to the client. The client can complete the payment from their browser or mobile application. |
|
|
709
|
+
| `false` | Generates a link to embed in an iframe within your own website. The payment is processed within your site. |
|
|
710
|
+
|
|
711
|
+
#### Iframe Implementation Example
|
|
712
|
+
|
|
713
|
+
When `external: false`, you can embed the payment link in an iframe as follows:
|
|
714
|
+
|
|
715
|
+
``` html
|
|
716
|
+
|
|
717
|
+
<html>
|
|
718
|
+
<head>
|
|
719
|
+
<title>Add Payment Method</title>
|
|
720
|
+
</head>
|
|
721
|
+
<body>
|
|
722
|
+
</div><div> src="YOUR-URL-LINK-ID"
|
|
723
|
+
<br></div><div> width="100%"
|
|
724
|
+
<br></div><div> height="600"
|
|
725
|
+
<br></div><div> frameborder="0"
|
|
726
|
+
<br></div><div> style="max-width: 500px; margin: 0 auto; display: block;"
|
|
727
|
+
<br></div><div> ></iframe>
|
|
728
|
+
<br></div><div></body>
|
|
729
|
+
<br></div><div></html>
|
|
730
|
+
<br></div></code></pre><blockquote>⚠️ <strong >Important:</b>
|
|
731
|
+
<br>You must use the <strong >complete URL</b> from the <code >url</code> field in the service response as the <code >src</code> attribute value in the iframe. The <code >src</code> attribute must contain the entire URL returned in the <code >data.url</code> field of the API response. For example, if the response contains:</blockquote>
|
|
732
|
+
<br><pre class=json><code><div>"data": {
|
|
733
|
+
<br></div><div> "url": "https://checkout.akua.la/links/lnk-07595544-cfe6-4d40-8894-0ed7cf3c28b9?sandbox=true"
|
|
734
|
+
<br></div><div>}
|
|
735
|
+
<br></div></code></pre><p >Then the iframe <code >src</code> should be:</p><pre class=html><code><div><iframe src="https://checkout.akua.la/links/lnk-07595544-cfe6-4d40-8894-0ed7cf3c28b9?sandbox=true" ...></iframe>
|
|
736
|
+
<br></div></code></pre><pre class=json><code><div>"paymentMethod": {
|
|
737
|
+
<br></div><div> "id": 273,
|
|
738
|
+
<br></div><div> "description": "Payment description",
|
|
739
|
+
<br></div><div> "external": true
|
|
740
|
+
<br></div><div>}
|
|
741
|
+
<br></div></code></pre><h4 >Response Example</h4><pre class=json><code><div>{
|
|
742
|
+
<br></div><div> "statusCode": "00",
|
|
743
|
+
<br></div><div> "message": "Operación exitosa.",
|
|
744
|
+
<br></div><div> "data": {
|
|
745
|
+
<br></div><div> "url": "https://checkout.akua.la/links/lnk-07595544-cfe6-4d40-8894-0ed7cf3c28b9?sandbox=true",
|
|
746
|
+
<br></div><div> "reference": "db205760-d228-11f0-8923-0d9b7d755dab",
|
|
747
|
+
<br></div><div> "resourceId": "2762357",
|
|
748
|
+
<br></div><div> "expiresIn": "2025-12-06T22:22:16.000Z",
|
|
749
|
+
<br></div><div> "urlStatusPay": "https://mf-core.refacil.co/refacilpay/resumen/79/db205760-d228-11f0-8923-0d9b7d755dab",
|
|
750
|
+
<br></div><div> "resourceUrlId": "1762027",
|
|
751
|
+
<br></div><div> "status": 1
|
|
752
|
+
<br></div><div> }
|
|
753
|
+
<br></div><div>}
|
|
754
|
+
<br></div></code></pre><h4 >Response Fields</h4><div ><table><tbody><tr ><th ><strong >Field</b></th><th ><strong >Description</b></th></tr><tr ><td ><div ><code >url</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Payment link URL. Can be used for direct redirection or to embed in an iframe depending on the <code >external</code> value</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >reference</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Unique transaction reference</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >resourceId</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Generated payment resource ID</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >expiresIn</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Payment link expiration date and time</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >urlStatusPay</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >URL to check the payment status</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >resourceUrlId</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >URL resource ID</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >status</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Resource status (1 = Active)</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr></tbody></table></div><div ><hr contenteditable="false" /></div><h2 >📥 Request Body Parameters</h2><div ><table><tbody><tr ><th ><strong >Field</b></th><th ><strong >Type</b></th><th ><strong >Required</b></th><th ><strong >Description</b></th></tr><tr ><td ><div ><code >amount</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >number</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >✅</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Value of the payment.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >brandId</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >number</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >❌</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >ID of the customer's white label; if one is not available, the default ID 79 is sent.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >expiresIn</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >number</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >❌</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Time in seconds for the expiration of the resource or payment link.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >paymentMethod</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >object</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >✅</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Object specifying the payment method and its details.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >paymentMethod.id</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >number</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >✅</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >ID of the selected payment method (see available payment methods).</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >reference1</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >string</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >✅</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Customer identifier, must be between 1 and 30 characters.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >reference2</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >object</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >❌</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Object for additional information.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >reference2.Commerce</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >object</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >❌</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Object for information related to the store or commerce.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >reference2.Data</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >object</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >❌</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Object for information related to the conciliation of the transaction.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >reference2.Label</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >object</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >❌</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Object to send information to be displayed in the payment summary.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >returnUrl</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >string</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >❌</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Link that the customer will see when clicking on the back to commerce button.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >showSummary</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >boolean</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >❌</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Indicates whether the RefácilPay payment summary will be shown or not (false: do not show, true: show). Default: true.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >userMetadata</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >object</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >✅</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Object containing key details about the user or merchant generating the payment resource.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >userMetadata.identifier</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >string</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >✅</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >Unique identifier of the user or merchant generating the payment resource (max 36 characters).</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >userMetadata.ip</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >string</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >✅</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >IP address associated with the user's identifier. Must be a valid IP address.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >userMetadata.urlCommerce</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >string</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >✅</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >URL that identifies the commerce. Must follow valid URL structure with http:// or https:// protocol. Maximum length: 500 characters.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr><tr ><td ><div ><code >webhookUrl</code></div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >string</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >✅</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td><td ><div >URL of the client's webhook to receive real-time payment status updates.</div><div contenteditable="false"><div ><div><div ></div></div></div><div ></div></div></td></tr></tbody></table></div><p ></p></x-turndown>
|
|
755
|
+
```
|
|
650
756
|
|
|
651
757
|
**Parámetros:**
|
|
652
758
|
|
|
@@ -808,7 +914,7 @@ Body
|
|
|
808
914
|
|
|
809
915
|
| Name | Type | Description |
|
|
810
916
|
| --- | --- | --- |
|
|
811
|
-
| userId |
|
|
917
|
+
| userId | number | Campo del body: userId |
|
|
812
918
|
|
|
813
919
|
### `payment_transfiya_banks`
|
|
814
920
|
|
package/dist/config.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const appConfig: {
|
|
|
9
9
|
readonly apiToken: string | undefined;
|
|
10
10
|
readonly username: string;
|
|
11
11
|
readonly password: string;
|
|
12
|
+
readonly secretKey: string;
|
|
12
13
|
readonly authEndpoint: string;
|
|
13
14
|
readonly tokenCacheTtl: number;
|
|
14
15
|
readonly mcpToken: string | undefined;
|
package/dist/config.js
CHANGED
|
@@ -50,6 +50,7 @@ const authEndpoint = process.env.AUTH_ENDPOINT || '';
|
|
|
50
50
|
const apiToken = process.env.API_TOKEN;
|
|
51
51
|
const username = process.env.USERNAME;
|
|
52
52
|
const password = process.env.PASSWORD;
|
|
53
|
+
const secretKey = process.env.SECRET_KEY || '';
|
|
53
54
|
export const appConfig = {
|
|
54
55
|
name: 'refacil-pay',
|
|
55
56
|
description: 'MCP para Refacil Pay API - Gestión de pagos y transacciones',
|
|
@@ -61,6 +62,7 @@ export const appConfig = {
|
|
|
61
62
|
apiToken,
|
|
62
63
|
username,
|
|
63
64
|
password,
|
|
65
|
+
secretKey,
|
|
64
66
|
authEndpoint,
|
|
65
67
|
tokenCacheTtl,
|
|
66
68
|
mcpToken: process.env.MCP_TOKEN ?? undefined
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,8BAA8B;AAC9B,MAAM,EAAE,CAAC;AAET,6BAA6B;AAC7B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;AAEnG,0CAA0C;AAC1C,MAAM,eAAe,GAAG,CAAC,UAAU,EAAC,UAAU,EAAC,UAAU,EAAC,eAAe,CAAC,CAAC;AAC3E,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;IACnD,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACnC,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,I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