n8n-nodes-mercadopago-pix-assinatura 1.0.5 → 1.0.6

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.
@@ -838,7 +838,7 @@ class PixPayment {
838
838
  Authorization: `Bearer ${credentials.accessToken}`,
839
839
  'Content-Type': 'application/json',
840
840
  };
841
- if (idempotencyKey) {
841
+ if (idempotencyKey && idempotencyKey.trim() !== '') {
842
842
  headers['X-Idempotency-Key'] = idempotencyKey;
843
843
  }
844
844
  const response = await executeFunctions.helpers.requestWithAuthentication.call(executeFunctions, 'pixPaymentApi', {
@@ -934,6 +934,7 @@ class PixPayment {
934
934
  { id: 'credit_card' },
935
935
  ],
936
936
  },
937
+ back_url: 'https://www.mercadopago.com.br',
937
938
  };
938
939
  const response = await executeFunctions.helpers.requestWithAuthentication.call(executeFunctions, 'pixPaymentApi', {
939
940
  method: 'POST',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-mercadopago-pix-assinatura",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "n8n node para processamento de pagamentos PIX e assinaturas via Mercado Pago",
5
5
  "keywords": [
6
6
  "n8n",
@@ -40,6 +40,7 @@
40
40
  "test:coverage": "jest --coverage",
41
41
  "test:unit": "jest test/unit",
42
42
  "test:integration": "jest test/integration",
43
+ "test:local": "ts-node test/local/index.ts",
43
44
  "prepublishOnly": "npm run build"
44
45
  },
45
46
  "files": [
@@ -59,6 +60,8 @@
59
60
  "@types/jest": "^30.0.0",
60
61
  "@typescript-eslint/eslint-plugin": "^5.45.0",
61
62
  "@typescript-eslint/parser": "^5.45.0",
63
+ "axios": "^1.6.0",
64
+ "dotenv": "^16.3.1",
62
65
  "eslint": "^8.28.0",
63
66
  "eslint-plugin-n8n-nodes-base": "~1.11.0",
64
67
  "gulp": "^4.0.2",
@@ -67,6 +70,7 @@
67
70
  "n8n-workflow": "*",
68
71
  "prettier": "^2.8.0",
69
72
  "ts-jest": "^29.4.6",
73
+ "ts-node": "^10.9.2",
70
74
  "typescript": "~5.3.0"
71
75
  },
72
76
  "peerDependencies": {