@cloudcommerce/app-mercadopago 2.41.13 → 2.42.0
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.
|
@@ -165,7 +165,7 @@ export default async (appData) => {
|
|
|
165
165
|
}
|
|
166
166
|
try {
|
|
167
167
|
const headers = {
|
|
168
|
-
Authorization: `Bearer ${process.env.MERCADOPAGO_TOKEN}`,
|
|
168
|
+
'Authorization': `Bearer ${process.env.MERCADOPAGO_TOKEN}`,
|
|
169
169
|
'Content-Type': 'application/json',
|
|
170
170
|
'X-Idempotency-Key': orderId,
|
|
171
171
|
};
|
package/lib/mp-webhook.js
CHANGED
|
@@ -47,7 +47,7 @@ export const mercadopago = {
|
|
|
47
47
|
if (order && order.transactions) {
|
|
48
48
|
const payment = (await axios.get(`https://api.mercadopago.com/v1/payments/${notification.data.id}`, {
|
|
49
49
|
headers: {
|
|
50
|
-
Authorization: `Bearer ${process.env.MERCADOPAGO_TOKEN}`,
|
|
50
|
+
'Authorization': `Bearer ${process.env.MERCADOPAGO_TOKEN}`,
|
|
51
51
|
'Content-Type': 'application/json',
|
|
52
52
|
},
|
|
53
53
|
})).data;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-mercadopago",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.42.0",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce app to integrate Mercado Pago",
|
|
6
6
|
"main": "lib/mercadopago.js",
|
|
7
7
|
"exports": {
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"axios": "^1.9.0",
|
|
31
31
|
"firebase-admin": "^13.3.0",
|
|
32
32
|
"firebase-functions": "^6.3.2",
|
|
33
|
-
"@cloudcommerce/api": "2.
|
|
34
|
-
"@cloudcommerce/firebase": "2.
|
|
33
|
+
"@cloudcommerce/api": "2.42.0",
|
|
34
|
+
"@cloudcommerce/firebase": "2.42.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@firebase/app-types": "^0.9.3",
|
|
38
|
-
"@cloudcommerce/
|
|
39
|
-
"@cloudcommerce/
|
|
38
|
+
"@cloudcommerce/types": "2.42.0",
|
|
39
|
+
"@cloudcommerce/test-base": "2.42.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "bash scripts/build.sh",
|