From f820ddd071583cfd02a50d3eb4e7de6d33158099 Mon Sep 17 00:00:00 2001 From: Meiyer Jaimes Date: Mon, 30 Sep 2024 16:56:00 -0400 Subject: [PATCH 1/2] Update package-lock.json --- package-lock.json | 305 ++++++++++++++++++++++++++-------------------- 1 file changed, 175 insertions(+), 130 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5d17a72..a782b3f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7845,9 +7845,10 @@ "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" }, "node_modules/@next/env": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.3.tgz", - "integrity": "sha512-W7fd7IbkfmeeY2gXrzJYDx8D2lWKbVoTIj1o1ScPHNzvp30s1AuoEFSdr39bC5sjxJaxTtq3OTCZboNp0lNWHA==" + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.13.tgz", + "integrity": "sha512-s3lh6K8cbW1h5Nga7NNeXrbe0+2jIIYK9YaA9T7IufDWnZpozdFUp6Hf0d5rNWUKu4fEuSX2rCKlGjCrtylfDw==", + "license": "MIT" }, "node_modules/@next/eslint-plugin-next": { "version": "14.2.3", @@ -7917,12 +7918,13 @@ } }, "node_modules/@next/swc-darwin-arm64": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.3.tgz", - "integrity": "sha512-3pEYo/RaGqPP0YzwnlmPN2puaF2WMLM3apt5jLW2fFdXD9+pqcoTzRk+iZsf8ta7+quAe4Q6Ms0nR0SFGFdS1A==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.13.tgz", + "integrity": "sha512-IkAmQEa2Htq+wHACBxOsslt+jMoV3msvxCn0WFSfJSkv/scy+i/EukBKNad36grRxywaXUYJc9mxEGkeIs8Bzg==", "cpu": [ "arm64" ], + "license": "MIT", "optional": true, "os": [ "darwin" @@ -7932,12 +7934,13 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.3.tgz", - "integrity": "sha512-6adp7waE6P1TYFSXpY366xwsOnEXM+y1kgRpjSRVI2CBDOcbRjsJ67Z6EgKIqWIue52d2q/Mx8g9MszARj8IEA==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.13.tgz", + "integrity": "sha512-Dv1RBGs2TTjkwEnFMVL5XIfJEavnLqqwYSD6LXgTPdEy/u6FlSrLBSSfe1pcfqhFEXRAgVL3Wpjibe5wXJzWog==", "cpu": [ "x64" ], + "license": "MIT", "optional": true, "os": [ "darwin" @@ -7947,12 +7950,13 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.3.tgz", - "integrity": "sha512-cuzCE/1G0ZSnTAHJPUT1rPgQx1w5tzSX7POXSLaS7w2nIUJUD+e25QoXD/hMfxbsT9rslEXugWypJMILBj/QsA==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.13.tgz", + "integrity": "sha512-yB1tYEFFqo4ZNWkwrJultbsw7NPAAxlPXURXioRl9SdW6aIefOLS+0TEsKrWBtbJ9moTDgU3HRILL6QBQnMevg==", "cpu": [ "arm64" ], + "license": "MIT", "optional": true, "os": [ "linux" @@ -7962,12 +7966,13 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.3.tgz", - "integrity": "sha512-0D4/oMM2Y9Ta3nGuCcQN8jjJjmDPYpHX9OJzqk42NZGJocU2MqhBq5tWkJrUQOQY9N+In9xOdymzapM09GeiZw==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.13.tgz", + "integrity": "sha512-v5jZ/FV/eHGoWhMKYrsAweQ7CWb8xsWGM/8m1mwwZQ/sutJjoFaXchwK4pX8NqwImILEvQmZWyb8pPTcP7htWg==", "cpu": [ "arm64" ], + "license": "MIT", "optional": true, "os": [ "linux" @@ -7977,12 +7982,13 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.3.tgz", - "integrity": "sha512-ENPiNnBNDInBLyUU5ii8PMQh+4XLr4pG51tOp6aJ9xqFQ2iRI6IH0Ds2yJkAzNV1CfyagcyzPfROMViS2wOZ9w==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.13.tgz", + "integrity": "sha512-aVc7m4YL7ViiRv7SOXK3RplXzOEe/qQzRA5R2vpXboHABs3w8vtFslGTz+5tKiQzWUmTmBNVW0UQdhkKRORmGA==", "cpu": [ "x64" ], + "license": "MIT", "optional": true, "os": [ "linux" @@ -7992,12 +7998,13 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.3.tgz", - "integrity": "sha512-BTAbq0LnCbF5MtoM7I/9UeUu/8ZBY0i8SFjUMCbPDOLv+un67e2JgyN4pmgfXBwy/I+RHu8q+k+MCkDN6P9ViQ==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.13.tgz", + "integrity": "sha512-4wWY7/OsSaJOOKvMsu1Teylku7vKyTuocvDLTZQq0TYv9OjiYYWt63PiE1nTuZnqQ4RPvME7Xai+9enoiN0Wrg==", "cpu": [ "x64" ], + "license": "MIT", "optional": true, "os": [ "linux" @@ -8007,12 +8014,13 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.3.tgz", - "integrity": "sha512-AEHIw/dhAMLNFJFJIJIyOFDzrzI5bAjI9J26gbO5xhAKHYTZ9Or04BesFPXiAYXDNdrwTP2dQceYA4dL1geu8A==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.13.tgz", + "integrity": "sha512-uP1XkqCqV2NVH9+g2sC7qIw+w2tRbcMiXFEbMihkQ8B1+V6m28sshBwAB0SDmOe0u44ne1vFU66+gx/28RsBVQ==", "cpu": [ "arm64" ], + "license": "MIT", "optional": true, "os": [ "win32" @@ -8022,12 +8030,13 @@ } }, "node_modules/@next/swc-win32-ia32-msvc": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.3.tgz", - "integrity": "sha512-vga40n1q6aYb0CLrM+eEmisfKCR45ixQYXuBXxOOmmoV8sYST9k7E3US32FsY+CkkF7NtzdcebiFT4CHuMSyZw==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.13.tgz", + "integrity": "sha512-V26ezyjPqQpDBV4lcWIh8B/QICQ4v+M5Bo9ykLN+sqeKKBxJVDpEc6biDVyluTXTC40f5IqCU0ttth7Es2ZuMw==", "cpu": [ "ia32" ], + "license": "MIT", "optional": true, "os": [ "win32" @@ -8037,12 +8046,13 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.3.tgz", - "integrity": "sha512-Q1/zm43RWynxrO7lW4ehciQVj+5ePBhOK+/K2P7pLFX3JaJ/IZVC69SHidrmZSOkqz7ECIOhhy7XhAFG4JYyHA==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.13.tgz", + "integrity": "sha512-WwzOEAFBGhlDHE5Z73mNU8CO8mqMNLqaG+AO9ETmzdCQlJhVtWZnOl2+rqgVQS+YHunjOWptdFmNfbpwcUuEsw==", "cpu": [ "x64" ], + "license": "MIT", "optional": true, "os": [ "win32" @@ -10618,26 +10628,6 @@ "@types/ms": "*" } }, - "node_modules/@types/eslint": { - "version": "8.56.10", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.10.tgz", - "integrity": "sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==", - "peer": true, - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.7", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", - "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", - "peer": true, - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, "node_modules/@types/estree": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", @@ -12170,10 +12160,11 @@ } }, "node_modules/axios": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", - "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", + "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", "dev": true, + "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -12295,10 +12286,11 @@ "dev": true }, "node_modules/body-parser": { - "version": "1.20.2", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", - "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", "dev": true, + "license": "MIT", "dependencies": { "bytes": "3.1.2", "content-type": "~1.0.5", @@ -12308,7 +12300,7 @@ "http-errors": "2.0.0", "iconv-lite": "0.4.24", "on-finished": "2.4.1", - "qs": "6.11.0", + "qs": "6.13.0", "raw-body": "2.5.2", "type-is": "~1.6.18", "unpipe": "1.0.0" @@ -12323,6 +12315,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "2.0.0" } @@ -12331,7 +12324,8 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/bowser": { "version": "2.11.0", @@ -12476,6 +12470,7 @@ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -13944,6 +13939,7 @@ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -14342,6 +14338,7 @@ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -14359,6 +14356,7 @@ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8", "npm": "1.2.8000 || >= 1.4.16" @@ -14434,10 +14432,11 @@ } }, "node_modules/dset": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.2.tgz", - "integrity": "sha512-g/M9sqy3oHe477Ar4voQxWtaPIFw1jTdKZuomOjhCcBx9nHUNn0pu6NopuFFrTh/TRZIKEj+76vLWFu9BNKk+Q==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.4.tgz", + "integrity": "sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -14473,7 +14472,8 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/electron-to-chromium": { "version": "1.4.825", @@ -14495,10 +14495,11 @@ } }, "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -14513,9 +14514,10 @@ } }, "node_modules/enhanced-resolve": { - "version": "5.17.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.0.tgz", - "integrity": "sha512-dwDPwZL0dmye8Txp2gzFmA6sxALaSvdRDjPH0viLcKrtlOL3tw62nWWweVD1SdILDTJrbrL6tdWVN58Wo6U3eA==", + "version": "5.17.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz", + "integrity": "sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==", + "license": "MIT", "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" @@ -14746,7 +14748,8 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/escape-string-regexp": { "version": "4.0.0", @@ -15363,6 +15366,7 @@ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -15377,37 +15381,38 @@ } }, "node_modules/express": { - "version": "4.19.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", - "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", + "version": "4.21.0", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.0.tgz", + "integrity": "sha512-VqcNGcj/Id5ZT1LZ/cfihi3ttTn+NJmkli2eZADigjq29qTlWi/hAQ43t/VLPq8+UX06FCEx3ByOYet6ZFblng==", "dev": true, + "license": "MIT", "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "1.20.2", + "body-parser": "1.20.3", "content-disposition": "0.5.4", "content-type": "~1.0.4", "cookie": "0.6.0", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", - "finalhandler": "1.2.0", + "finalhandler": "1.3.1", "fresh": "0.5.2", "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", + "merge-descriptors": "1.0.3", "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", + "path-to-regexp": "0.1.10", "proxy-addr": "~2.0.7", - "qs": "6.11.0", + "qs": "6.13.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", + "send": "0.19.0", + "serve-static": "1.16.2", "setprototypeof": "1.2.0", "statuses": "2.0.1", "type-is": "~1.6.18", @@ -15579,13 +15584,14 @@ } }, "node_modules/finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", "dev": true, + "license": "MIT", "dependencies": { "debug": "2.6.9", - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "on-finished": "2.4.1", "parseurl": "~1.3.3", @@ -15601,6 +15607,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "2.0.0" } @@ -15609,7 +15616,8 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/flat-cache": { "version": "3.0.4", @@ -15759,6 +15767,7 @@ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -16245,6 +16254,7 @@ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", "dev": true, + "license": "MIT", "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", @@ -16272,6 +16282,7 @@ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, + "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" }, @@ -17867,6 +17878,7 @@ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -17877,10 +17889,14 @@ "integrity": "sha512-QmpUu4KqDmX0plH4u+tf0riMc1KHE1+lw95cMrLlXQAFOx/xnBtwhZ52XJxd9X2O6kwKBqX32kmhbhlobD0cuw==" }, "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", - "dev": true + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/merge-stream": { "version": "2.0.0", @@ -18586,11 +18602,12 @@ ] }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "license": "MIT", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -18602,6 +18619,7 @@ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", "dev": true, + "license": "MIT", "bin": { "mime": "cli.js" }, @@ -18837,11 +18855,12 @@ "peer": true }, "node_modules/next": { - "version": "14.2.3", - "resolved": "https://registry.npmjs.org/next/-/next-14.2.3.tgz", - "integrity": "sha512-dowFkFTR8v79NPJO4QsBUtxv0g9BrS/phluVpMAt2ku7H+cbcBJlopXjkWlwxrk/xGqMemr7JkGPGemPrLLX7A==", + "version": "14.2.13", + "resolved": "https://registry.npmjs.org/next/-/next-14.2.13.tgz", + "integrity": "sha512-BseY9YNw8QJSwLYD7hlZzl6QVDoSFHL/URN5K64kVEVpCsSOWeyjbIGK+dZUaRViHTaMQX8aqmnn0PHBbGZezg==", + "license": "MIT", "dependencies": { - "@next/env": "14.2.3", + "@next/env": "14.2.13", "@swc/helpers": "0.5.5", "busboy": "1.6.0", "caniuse-lite": "^1.0.30001579", @@ -18856,15 +18875,15 @@ "node": ">=18.17.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "14.2.3", - "@next/swc-darwin-x64": "14.2.3", - "@next/swc-linux-arm64-gnu": "14.2.3", - "@next/swc-linux-arm64-musl": "14.2.3", - "@next/swc-linux-x64-gnu": "14.2.3", - "@next/swc-linux-x64-musl": "14.2.3", - "@next/swc-win32-arm64-msvc": "14.2.3", - "@next/swc-win32-ia32-msvc": "14.2.3", - "@next/swc-win32-x64-msvc": "14.2.3" + "@next/swc-darwin-arm64": "14.2.13", + "@next/swc-darwin-x64": "14.2.13", + "@next/swc-linux-arm64-gnu": "14.2.13", + "@next/swc-linux-arm64-musl": "14.2.13", + "@next/swc-linux-x64-gnu": "14.2.13", + "@next/swc-linux-x64-musl": "14.2.13", + "@next/swc-win32-arm64-msvc": "14.2.13", + "@next/swc-win32-ia32-msvc": "14.2.13", + "@next/swc-win32-x64-msvc": "14.2.13" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", @@ -19068,6 +19087,7 @@ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", "dev": true, + "license": "MIT", "dependencies": { "ee-first": "1.1.1" }, @@ -19252,6 +19272,7 @@ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -19322,10 +19343,11 @@ } }, "node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", - "dev": true + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", + "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==", + "dev": true, + "license": "MIT" }, "node_modules/path-type": { "version": "4.0.0", @@ -19800,12 +19822,13 @@ } }, "node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { - "side-channel": "^1.0.4" + "side-channel": "^1.0.6" }, "engines": { "node": ">=0.6" @@ -19868,6 +19891,7 @@ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -19877,6 +19901,7 @@ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", "dev": true, + "license": "MIT", "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", @@ -20517,10 +20542,11 @@ } }, "node_modules/send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", "dev": true, + "license": "MIT", "dependencies": { "debug": "2.6.9", "depd": "2.0.0", @@ -20545,6 +20571,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "2.0.0" } @@ -20553,13 +20580,25 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true + "dev": true, + "license": "MIT" + }, + "node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } }, "node_modules/send/node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/serialize-javascript": { "version": "6.0.2", @@ -20571,15 +20610,16 @@ } }, "node_modules/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", "dev": true, + "license": "MIT", "dependencies": { - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "parseurl": "~1.3.3", - "send": "0.18.0" + "send": "0.19.0" }, "engines": { "node": ">= 0.8.0" @@ -20621,7 +20661,8 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/shebang-command": { "version": "2.0.0", @@ -21431,6 +21472,7 @@ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -22029,6 +22071,7 @@ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.6" } @@ -22127,6 +22170,7 @@ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", "dev": true, + "license": "MIT", "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" @@ -22408,6 +22452,7 @@ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -22656,12 +22701,12 @@ "dev": true }, "node_modules/webpack": { - "version": "5.93.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.93.0.tgz", - "integrity": "sha512-Y0m5oEY1LRuwly578VqluorkXbvXKh7U3rLoQCEO04M97ScRr44afGVkI0FQFsXzysk5OgFAxjZAb9rsGQVihA==", + "version": "5.95.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.95.0.tgz", + "integrity": "sha512-2t3XstrKULz41MNMBF+cJ97TyHdyQ8HCt//pqErqDvNjU9YQBnZxIHa11VXsi7F3mb5/aO2tuDxdeTPdU7xu9Q==", + "license": "MIT", "peer": true, "dependencies": { - "@types/eslint-scope": "^3.7.3", "@types/estree": "^1.0.5", "@webassemblyjs/ast": "^1.12.1", "@webassemblyjs/wasm-edit": "^1.12.1", @@ -22670,7 +22715,7 @@ "acorn-import-attributes": "^1.9.5", "browserslist": "^4.21.10", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.17.0", + "enhanced-resolve": "^5.17.1", "es-module-lexer": "^1.2.1", "eslint-scope": "5.1.1", "events": "^3.2.0", From 3eade26b4732a191825e1245fe7526c6e97b7622 Mon Sep 17 00:00:00 2001 From: Meiyer Jaimes Date: Mon, 30 Sep 2024 17:18:24 -0400 Subject: [PATCH 2/2] feat: add more examples to checkout en --- .../api/reference/gateway-information.mdx | 84 +- src/pages/checkout/api/reference/token.mdx | 1 - .../api/reference/gateway-information.mdx | 218 +-- .../en/checkout/api/reference/payment.mdx | 724 ++++----- .../en/checkout/api/reference/session.mdx | 1373 +++++++++++++---- src/pages/en/checkout/api/reference/token.mdx | 620 ++++---- 6 files changed, 1971 insertions(+), 1049 deletions(-) diff --git a/src/pages/checkout/api/reference/gateway-information.mdx b/src/pages/checkout/api/reference/gateway-information.mdx index 014f45e..98e186c 100644 --- a/src/pages/checkout/api/reference/gateway-information.mdx +++ b/src/pages/checkout/api/reference/gateway-information.mdx @@ -86,48 +86,48 @@ curl -X "POST" https://checkout-test.placetopay.com/api/gateway/information \ "threeDS": "optional", "credits": [ { - "description": "Cuotas", - "code": "0", - "groupCode": "C", - "type": "00", - "installments": [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36 - ] + "description": "Cuotas", + "code": "0", + "groupCode": "C", + "type": "00", + "installments": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36 + ] } ] } diff --git a/src/pages/checkout/api/reference/token.mdx b/src/pages/checkout/api/reference/token.mdx index 02cd05c..9fef0c9 100644 --- a/src/pages/checkout/api/reference/token.mdx +++ b/src/pages/checkout/api/reference/token.mdx @@ -348,7 +348,6 @@ curl -X "POST" https://checkout-test.placetopay.com/api/collect \ - ```bash {{ title: 'USANDO TOKEN' }} curl -X "POST" https://checkout-test.placetopay.com/api/instrument/invalidate \ -H "Content-Type: application/json" \ diff --git a/src/pages/en/checkout/api/reference/gateway-information.mdx b/src/pages/en/checkout/api/reference/gateway-information.mdx index 7bf3f7b..b890b7b 100644 --- a/src/pages/en/checkout/api/reference/gateway-information.mdx +++ b/src/pages/en/checkout/api/reference/gateway-information.mdx @@ -16,38 +16,38 @@ export const apiRefs = ['/api/gateway/information'] - ```bash {{ title: 'cURL' }} - curl -X "POST" https://checkout-test.placetopay.com/api/gateway/information \ - -H "Content-Type: application/json" \ - -d '{ - "locale": "es_CO", - "auth": { - "login":"c51ce410c124a10e0db5e4b97fc2af39", - "tranKey":"VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", - "nonce":"NjE0OWVkODgwYjNhNw==", - "seed":"2021-09-21T09:34:48-05:00" - }, - "payment": { - "reference": "1122334455", - "description": "Test", - "amount": { - "currency": "USD", - "total": 100 - } - }, - "instrument": { - "card": { - "number": "4110760000000008", - }, - "token" : { - "token" : "f517475fd94ae67c84fe06593aaff5798ebf3a75664c2b6816024eb297be321e", - }, - ... - }, - "ipAddress": "127.0.0.1", - "userAgent": "Testing" - }' - ``` +```bash {{ title: 'cURL' }} +curl -X "POST" https://checkout-test.placetopay.com/api/gateway/information \ +-H "Content-Type: application/json" \ +-d '{ + "locale": "es_CO", + "auth": { + "login":"c51ce410c124a10e0db5e4b97fc2af39", + "tranKey":"VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce":"NjE0OWVkODgwYjNhNw==", + "seed":"2021-09-21T09:34:48-05:00" + }, + "payment": { + "reference": "1122334455", + "description": "Prueba", + "amount": { + "currency": "USD", + "total": 100 + } + }, + "instrument": { + "card": { + "number": "4110760000000008", + }, + "token" : { + "token" : "f517475fd94ae67c84fe06593aaff5798ebf3a75664c2b6816024eb297be321e", + }, + ... + }, + "ipAddress": "127.0.0.1", + "userAgent": "Testing" +}' +``` @@ -64,85 +64,85 @@ export const apiRefs = ['/api/gateway/information']
- ```json {{ title: '200' }} - { - "status": { - "status": "OK", - "reason": "00", - "message": "The request has been successfully processed", - "date": "2021-09-21T09:26:11-05:00" - }, - "provider": "CREDIBANCO", - "serviceCode": "CR_VS", - "cardType": "C", - "cardTypes": [ - "C", - "R", - "A" - ], - "displayInterest": false, - "requireOtp": false, - "requireCvv2": true, - "threeDS": "optional", - "credits": [ - { - "description": "Installments", - "code": "0", - "groupCode": "C", - "type": "00", - "installments": [ - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36 - ] - } - ] - } - ``` - ```json {{ title: '400' }} +```json {{ title: '200' }} + { + "status": { + "status": "OK", + "reason": "00", + "message": "The request has been successfully processed", + "date": "2021-09-21T09:26:11-05:00" + }, + "provider": "CREDIBANCO", + "serviceCode": "CR_VS", + "cardType": "C", + "cardTypes": [ + "C", + "R", + "A" + ], + "displayInterest": false, + "requireOtp": false, + "requireCvv2": true, + "threeDS": "optional", + "credits": [ { - "status": { - "status": "FAILED", - "reason": "XN", - "reason": 400, - "message": "Invalid token provided", - "date": "2021-11-30T15:12:25-05:00" - }, + "description": "Installments", + "code": "0", + "groupCode": "C", + "type": "00", + "installments": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36 + ] } - ``` + ] + } +``` +```json {{ title: '400' }} +{ + "status": { + "status": "FAILED", + "reason": "XN", + "reason": 400, + "message": "Invalid token provided", + "date": "2021-11-30T15:12:25-05:00" + }, +} +``` \ No newline at end of file diff --git a/src/pages/en/checkout/api/reference/payment.mdx b/src/pages/en/checkout/api/reference/payment.mdx index 70bd2bb..d8b9f63 100644 --- a/src/pages/en/checkout/api/reference/payment.mdx +++ b/src/pages/en/checkout/api/reference/payment.mdx @@ -27,19 +27,19 @@ The refund endpoint allows to refund an approved transaction. See more in [Refun - ```bash {{ title: 'cURL' }} - curl -X "POST" https://checkout-test.placetopay.com/api/session/000000 \ - -H "Content-Type: application/json" \ - -d '{ - "auth": { - "login": "c51ce410c124a10e0db5e4b97fc2af39", - "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", - "nonce": "NjE0OWVkODgwYjNhNw==", - "seed": "2021-09-21T09:34:48-05:00" - }, - "internalReference": 1 - }' - ``` +```bash {{ title: 'cURL' }} +curl -X "POST" https://checkout-test.placetopay.com/api/session/000000 \ +-H "Content-Type: application/json" \ +-d '{ + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "internalReference": 1 +}' +``` @@ -56,121 +56,121 @@ The refund endpoint allows to refund an approved transaction. See more in [Refun
- ```json {{ title: '200' }} - { - "status": { - "status": "APPROVED", - "reason": "00", - "message": "approved", - "date": "2021-12-07T16:01:19-05:00" - }, - "payment": { - "status": { - "status": "APPROVED", - "reason": "00", - "message": "approved", - "date": "2021-12-07T16:01:18-05:00" - }, - "internalReference": 1, - "paymentMethod": "visa", - "paymentMethodName": "Visa", - "issuerName": "JPMORGAN CHASE BANK, N.A.", - "amount": { - "from": { - "currency": "USD", - "total": 100 - }, - "to": { - "currency": "USD", - "total": 100 - }, - "factor": 1 - }, - "authorization": "123456", - "reference": "12345", - "receipt": "230955511860", - "franchise": "PS_VS", - "refunded": false, - "processorFields": [ - { - "keyword": "merchantCode", - "value": "1465675", - "displayOn": "none" - }, - { - "keyword": "terminalNumber", - "value": "00990099", - "displayOn": "none" - }, - { - "keyword": "credit", - "value": { - "code": "1", - "type": "00", - "groupCode": "C", - "installments": 1 - }, - "displayOn": "none" - }, - { - "keyword": "totalAmount", - "value": 52, - "displayOn": "none" - }, - { - "keyword": "interestAmount", - "value": 0, - "displayOn": "none" - }, - { - "keyword": "installmentAmount", - "value": 0, - "displayOn": "none" - }, - { - "keyword": "iceAmount", - "value": 0, - "displayOn": "none" - }, - { - "keyword": "bin", - "value": "411111", - "displayOn": "none" - }, - { - "keyword": "expiration", - "value": "1223", - "displayOn": "none" - }, - { - "keyword": "lastDigits", - "value": "1111", - "displayOn": "none" - }, - { - "keyword": "id", - "value": "a10fe0690cfe557283310ba90746e159", - "displayOn": "none" - }, - { - "keyword": "b24", - "value": "00", - "displayOn": "none" - } - ] - } - } - ``` - ```json {{ title: '401' }} - { - "status": { - "status": "FAILED", - "reason": 401, - "message": "Autenticación fallida 102", - "date": "2021-11-30T15:12:25-05:00" - }, - } - ``` +```json {{ title: '200' }} +{ + "status": { + "status": "APPROVED", + "reason": "00", + "message": "approved", + "date": "2021-12-07T16:01:19-05:00" + }, + "payment": { + "status": { + "status": "APPROVED", + "reason": "00", + "message": "approved", + "date": "2021-12-07T16:01:18-05:00" + }, + "internalReference": 1, + "paymentMethod": "visa", + "paymentMethodName": "Visa", + "issuerName": "JPMORGAN CHASE BANK, N.A.", + "amount": { + "from": { + "currency": "USD", + "total": 100 + }, + "to": { + "currency": "USD", + "total": 100 + }, + "factor": 1 + }, + "authorization": "123456", + "reference": "12345", + "receipt": "230955511860", + "franchise": "PS_VS", + "refunded": false, + "processorFields": [ + { + "keyword": "merchantCode", + "value": "1465675", + "displayOn": "none" + }, + { + "keyword": "terminalNumber", + "value": "00990099", + "displayOn": "none" + }, + { + "keyword": "credit", + "value": { + "code": "1", + "type": "00", + "groupCode": "C", + "installments": 1 + }, + "displayOn": "none" + }, + { + "keyword": "totalAmount", + "value": 52, + "displayOn": "none" + }, + { + "keyword": "interestAmount", + "value": 0, + "displayOn": "none" + }, + { + "keyword": "installmentAmount", + "value": 0, + "displayOn": "none" + }, + { + "keyword": "iceAmount", + "value": 0, + "displayOn": "none" + }, + { + "keyword": "bin", + "value": "411111", + "displayOn": "none" + }, + { + "keyword": "expiration", + "value": "1223", + "displayOn": "none" + }, + { + "keyword": "lastDigits", + "value": "1111", + "displayOn": "none" + }, + { + "keyword": "id", + "value": "a10fe0690cfe557283310ba90746e159", + "displayOn": "none" + }, + { + "keyword": "b24", + "value": "00", + "displayOn": "none" + } + ] + } +} +``` +```json {{ title: '401' }} +{ + "status": { + "status": "FAILED", + "reason": 401, + "message": "Autenticación fallida 102", + "date": "2021-11-30T15:12:25-05:00" + }, +} +``` @@ -191,24 +191,56 @@ The refund endpoint allows to refund an approved transaction. See more in [Refun - ```bash {{ title: 'cURL' }} - curl -X "POST" https://checkout-test.placetopay.com/api/transaction \ - -H "Content-Type: application/json" \ - -d "{ - "auth": { - "login": "c51ce410c124a10e0db5e4b97fc2af39", - "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", - "nonce": "NjE0OWVkODgwYjNhNw==", - "seed": "2021-09-21T09:34:48-05:00" - }, - "internalReference": 640, - "amount": { - "currency": "USD", - "total": "500" - }, - "action": "checkout" - }" - ``` +```bash {{ title: 'CHECKOUT' }} +curl -X "POST" https://checkout-test.placetopay.com/api/transaction \ + -H "Content-Type: application/json" \ + -d "{ + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "internalReference": 640, + "amount": { + "currency": "USD", + "total": "500" + }, + "action": "checkout" + }" +``` +```bash {{ title: 'REAUTHORIZATION' }} +curl -X "POST" https://checkout-test.placetopay.com/api/transaction \ + -H "Content-Type: application/json" \ + -d "{ + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "internalReference": 640, + "amount": { + "currency": "USD", + "total": "500" + }, + "action": "reauthorization" + }" +``` +```bash {{ title: 'Reverse' }} +curl -X "POST" https://checkout-test.placetopay.com/api/transaction \ + -H "Content-Type: application/json" \ + -d "{ + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "internalReference": 640, + "action": "reverse" + }" +``` @@ -225,206 +257,206 @@ The refund endpoint allows to refund an approved transaction. See more in [Refun
- ```json {{ title: 'Default' }} - { - "reference": "12345", - "description": "Test payment", - "amount": { - "currency": "COP", - "total": 2000, - "taxes": [ - { - "kind": "valueAddedTax", - "amount": 1000, - "base": 0 - } - ], - "details": [ - { - "kind": "discount", - "amount": 1000 - } - ] - }, - "allowPartial": false, - "shipping": { - "document": "1122334455", - "documentType": "CC", - "name": "John", - "surname": "Doe", - "company": "Evertec", - "email": "johndoe@app.com", - "mobile": "+5731111111111", - "address": { - "street": "Calle falsa 123", - "city": "Medellín", - "state": "Poblado", - "postalCode": "55555", - "country": "Colombia", - "phone": "+573111111111" - } - }, - "items": [ - { - "sku": "12345", - "name": "product_1", - "category": "physical", - "qty": "1", - "price": 1000, - "tax": 0 - } - ], - "fields": [ - { - "keyword": "_test_field_value_", - "value": "_test_field_", - "displayOn": "approved" - } - ], - "recurring": { - "periodicity": "D", - "interval": "1", - "nextPayment": "2019-08-24", - "maxPeriods": 1, - "dueDate ": "2019-09-24", - "notificationUrl ": "https://checkout.placetopay.com" - }, - "subscribe": false, - "dispersion": [ - { - "agreement": "1299", - "agreementType": "MERCHANT", - "amount": { - "currency": "USD", - "total": 200 - } - } - ], - "modifiers": [ - { - "type": "FEDERAL_GOVERNMENT", - "code": 17934, - "additional": { - "invoice": "123345" - } - } - ] - } - ``` - ```json {{ title: 'Checkout' }} - { - "status": { - "status": "APPROVED", - "reason": "00", - "message": "approved", - "date": "2021-11-30T09:36:00-05:00" - }, - "payment": { - "status": { - "status": "APPROVED", - "reason": "00", - "message": "approved", - "date": "2021-11-30T09:35:59-05:00" - }, - "internalReference": 643, - "paymentMethod": "visa", - "paymentMethodName": "Visa", - "issuerName": "JPMORGAN CHASE BANK, N.A.", - "amount": { - "from": { - "currency": "USD", - "total": 500 - }, - "to": { - "currency": "USD", - "total": 500 - }, - "factor": 1 - }, - "authorization": "550044", - "reference": "1122334455", - "receipt": "499435368733", - "franchise": "PS_VS", - "refunded": false - } - } - ``` - ```json {{ title: 'Reauthorization'}} - { - "status": { - "status": "APPROVED", - "reason": "00", - "message": "approved", - "date": "2021-11-30T09:26:50-05:00" - }, - "payment": { - "status": { - "status": "APPROVED", - "reason": "00", - "message": "approved", - "date": "2021-11-30T09:26:49-05:00" - }, - "internalReference": 642, - "paymentMethod": "visa", - "paymentMethodName": "Visa", - "issuerName": "JPMORGAN CHASE BANK, N.A.", - "amount": { - "from": { - "currency": "USD", - "total": 500 - }, - "to": { - "currency": "USD", - "total": 500 - }, - "factor": 1 - }, - "authorization": "883327", - "reference": "1122334455", - "receipt": "657093859996", - "franchise": "PS_VS", - "refunded": false - } - } - ``` - ```json {{ title: 'Reverse' }} - { - "status": { - "status": "APPROVED", - "reason": "00", - "message": "approved", - "date": "2021-11-30T09:37:46-05:00" - }, - "payment": { - "status": { - "status": "APPROVED", - "reason": "00", - "message": "approved", - "date": "2021-11-30T09:37:46-05:00" - }, - "internalReference": 644, - "paymentMethod": "visa", - "paymentMethodName": "Visa", - "issuerName": "JPMORGAN CHASE BANK, N.A.", - "amount": { - "from": { - "currency": "USD", - "total": 500 - }, - "to": { - "currency": "USD", - "total": 1000 - }, - "factor": 1 - }, - "authorization": "550044", - "reference": "1122334455", - "receipt": "499435368733", - "franchise": "PS_VS", - "refunded": false - } - } - ``` +```json {{ title: 'Default' }} +{ + "reference": "12345", + "description": "Prueba de pago", + "amount": { + "currency": "COP", + "total": 2000, + "taxes": [ + { + "kind": "valueAddedTax", + "amount": 1000, + "base": 0 + } + ], + "details": [ + { + "kind": "discount", + "amount": 1000 + } + ] + }, + "allowPartial": false, + "shipping": { + "document": "1122334455", + "documentType": "CC", + "name": "John", + "surname": "Doe", + "company": "Evertec", + "email": "johndoe@app.com", + "mobile": "+5731111111111", + "address": { + "street": "Calle falsa 123", + "city": "Medellín", + "state": "Poblado", + "postalCode": "55555", + "country": "Colombia", + "phone": "+573111111111" + } + }, + "items": [ + { + "sku": "12345", + "name": "product_1", + "category": "physical", + "qty": "1", + "price": 1000, + "tax": 0 + } + ], + "fields": [ + { + "keyword": "_test_field_value_", + "value": "_test_field_", + "displayOn": "approved" + } + ], + "recurring": { + "periodicity": "D", + "interval": "1", + "nextPayment": "2019-08-24", + "maxPeriods": 1, + "dueDate ": "2019-09-24", + "notificationUrl ": "https://checkout.placetopay.com" + }, + "subscribe": false, + "dispersion": [ + { + "agreement": "1299", + "agreementType": "MERCHANT", + "amount": { + "currency": "USD", + "total": 200 + } + } + ], + "modifiers": [ + { + "type": "FEDERAL_GOVERNMENT", + "code": 17934, + "additional": { + "invoice": "123345" + } + } + ] +} +``` +```json {{ title: 'Checkout' }} +{ + "status": { + "status": "APPROVED", + "reason": "00", + "message": "Aprobada", + "date": "2021-11-30T09:36:00-05:00" + }, + "payment": { + "status": { + "status": "APPROVED", + "reason": "00", + "message": "Aprobada", + "date": "2021-11-30T09:35:59-05:00" + }, + "internalReference": 643, + "paymentMethod": "visa", + "paymentMethodName": "Visa", + "issuerName": "JPMORGAN CHASE BANK, N.A.", + "amount": { + "from": { + "currency": "USD", + "total": 500 + }, + "to": { + "currency": "USD", + "total": 500 + }, + "factor": 1 + }, + "authorization": "550044", + "reference": "1122334455", + "receipt": "499435368733", + "franchise": "PS_VS", + "refunded": false + } +} +``` +```json {{ title: 'Reauthorization'}} +{ + "status": { + "status": "APPROVED", + "reason": "00", + "message": "Aprobada", + "date": "2021-11-30T09:26:50-05:00" + }, + "payment": { + "status": { + "status": "APPROVED", + "reason": "00", + "message": "Aprobada", + "date": "2021-11-30T09:26:49-05:00" + }, + "internalReference": 642, + "paymentMethod": "visa", + "paymentMethodName": "Visa", + "issuerName": "JPMORGAN CHASE BANK, N.A.", + "amount": { + "from": { + "currency": "USD", + "total": 500 + }, + "to": { + "currency": "USD", + "total": 500 + }, + "factor": 1 + }, + "authorization": "883327", + "reference": "1122334455", + "receipt": "657093859996", + "franchise": "PS_VS", + "refunded": false + } +} +``` +```json {{ title: 'Reverse' }} +{ + "status": { + "status": "APPROVED", + "reason": "00", + "message": "Aprobada", + "date": "2021-11-30T09:37:46-05:00" + }, + "payment": { + "status": { + "status": "APPROVED", + "reason": "00", + "message": "Aprobada", + "date": "2021-11-30T09:37:46-05:00" + }, + "internalReference": 644, + "paymentMethod": "visa", + "paymentMethodName": "Visa", + "issuerName": "JPMORGAN CHASE BANK, N.A.", + "amount": { + "from": { + "currency": "USD", + "total": 500 + }, + "to": { + "currency": "USD", + "total": 1000 + }, + "factor": 1 + }, + "authorization": "550044", + "reference": "1122334455", + "receipt": "499435368733", + "franchise": "PS_VS", + "refunded": false + } +} +``` \ No newline at end of file diff --git a/src/pages/en/checkout/api/reference/session.mdx b/src/pages/en/checkout/api/reference/session.mdx index 163f51b..21bbf7d 100644 --- a/src/pages/en/checkout/api/reference/session.mdx +++ b/src/pages/en/checkout/api/reference/session.mdx @@ -25,31 +25,331 @@ The visual experience with which users interact to complete a payment is identif - ```bash {{ title: 'cURL' }} - curl -X "POST" https://checkout-test.placetopay.com/api/session \ - -H "Content-Type: application/json" \ - -d '{ - "locale": "es_CO", - "auth": { - "login":"c51ce410c124a10e0db5e4b97fc2af39", - "tranKey":"VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", - "nonce":"NjE0OWVkODgwYjNhNw==", - "seed":"2021-09-21T09:34:48-05:00" +```bash {{ title: 'Crear Sesión simple' }} +curl -X "POST" https://checkout-test.placetopay.com/api/session \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login":"c51ce410c124a10e0db5e4b97fc2af39", + "tranKey":"VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce":"NjE0OWVkODgwYjNhNw==", + "seed":"2021-09-21T09:34:48-05:00" + }, + "payment": { + "reference": "1122334455", + "description": "Prueba", + "amount": { + "currency": "USD", + "total": 100 + } + }, + "expiration": "2021-12-30T00:00:00-05:00", + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox" + }' +``` +```bash {{ title: 'Crear Sesión de preautorización' }} +curl -X "POST" https://checkout-test.placetopay.com/api/session \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "type": "checkin", + "payment": { + "reference": "1122334455", + "description": "Prueba", + "amount": { + "currency": "USD", + "total": 100 + } + }, + "expiration": "2021-12-30T00:00:00-05:00", + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox" + }' +``` +```bash {{ title: 'Crear sesión con pago mixto' }} +curl -X "POST" https://checkout-test.placetopay.com/api/session \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "payment": { + "reference": "1122334455", + "description": "Prueba", + "amount": { + "currency": "USD", + "total": 100 + }, + "allowPartial": true + }, + "expiration": "2021-12-30T00:00:00-05:00", + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox" + }' +``` +```bash {{ title: 'Crear sesión con impuestos' }} +curl -X "POST" https://checkout-test.placetopay.com/api/session \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "payment": { + "reference": "331122", + "description": "Reference", + "amount": { + "currency": "USD", + "total": 500, + "taxes": [ + { + "kind": "stateTax", + "amount": 16.13 }, - "payment": { - "reference": "1122334455", - "description": "Test", - "amount": { - "currency": "USD", - "total": 100 - } + { + "kind": "municipalTax", + "amount": 11.21 + }, + { + "kind": "reducedStateTax", + "amount": 10.21 + } + ] + } + }, + "expiration": "2021-12-30T00:00:00-05:00", + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox" + }' +``` +```bash {{ title: 'Crear sesión con dispersión' }} +curl -X "POST" https://checkout-test.placetopay.com/api/session \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "payment": { + "reference": "331122", + "description": "Reference", + "amount": { + "currency": "USD", + "total": 500 + }, + "dispersion": [ + { + "agreement": "1299", + "agreementType": "MERCHANT", + "amount": { + "currency": "USD", + "total": 200 + } + }, + { + "agreement": "", + "agreementType": "MERCHANT", + "amount": { + "currency": "USD", + "total": 300 + } + } + ] + }, + "expiration": "2021-12-30T00:00:00-05:00", + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox" + }' +``` +```bash {{ title: 'Crear sesión suscripción' }} +curl -X "POST" https://checkout-test.placetopay.com/api/session \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "subscription": { + "reference": "331122", + "description": "Una suscripción de prueba" + }, + "expiration": "2021-12-31T00:00:00-05:00", + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox" + }' +``` +```bash {{ title: 'Crear sesión con recurrencia' }} +curl -X "POST" https://checkout-test.placetopay.com/api/session \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "payment": { + "reference": "331122", + "description": "Pago con recurrencia", + "amount": { + "currency": "USD", + "total": 100 + }, + "recurring": { + "periodicity": "D", + "interval": "1", + "nextPayment": "2021-12-30", + "maxPeriods": "12" + } + }, + "expiration": "2022-12-15T00:00:00-05:00", + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox" + } +``` +```bash {{ title: 'Crear sesión con modificadores' }} +curl -X "POST" https://checkout-test.placetopay.com/api/session \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "payment": { + "reference": "331122", + "description": "Pago con modificadores", + "amount": { + "currency": "UYU", + "total": 2000 + }, + "modifiers": [ + { + "type": "FEDERAL_GOVERNMENT", + "code": 17934, + "additional": { + "invoice": "112233" + } + } + ] + }, + "expiration": "2022-12-15T00:00:00-05:00", + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox" + }' +``` +```bash {{ title: 'Crear sesión con detalles' }} +curl -X "POST" https://checkout-test.placetopay.com/api/session \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "payment": { + "reference": "331122", + "description": "Reference", + "amount": { + "currency": "USD", + "total": 500, + "details": [ + { + "kind": "tip", + "amount": 11 }, - "expiration": "2021-12-30T00:00:00-05:00", - "returnUrl": "https://dnetix.co/p2p/client", - "ipAddress": "127.0.0.1", - "userAgent": "PlacetoPay Sandbox" - }' - ``` + { + "kind": "subtotal", + "amount": 11 + } + ] + } + }, + "expiration": "2021-12-30T00:00:00-05:00", + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox" + }' +``` +```bash {{ title: 'Crear sesión con pago y subscripción' }} +curl -X "POST" https://checkout-test.placetopay.com/api/session \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "payer": { + "document": "1122334455", + "documentType": "CC", + "name": "John", + "surname": "Doe", + "company": "Evertec", + "email": "johndoe@app.com", + "mobile": "+5731111111111" + }, + "payment": { + "reference": "12345", + "description": "Prueba de pago y subscripción", + "amount": { + "currency": "COP", + "total": 2000 + }, + "subscribe": true + }, + "fields": [ + { + "keyword": "_processUrl_", + "value": "https://checkout.redirection.test/session/1/a592098e22acc709ec7eb30fc0973060", + "displayOn": "none" + } + ], + "expiration": "2019-08-24T14:15:22Z", + "returnUrl": "https://commerce.test/return", + "cancelUrl": "https://commerce.test/cancel", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox", + "skipResult": false, + "noBuyerFill": false + }' +``` @@ -67,28 +367,28 @@ The visual experience with which users interact to complete a payment is identif
- ```json {{ title: '200' }} - { - "status": { - "status": "OK", - "reason": "PC", - "message": "The request has been processed successfully", - "date": "2021-11-30T15:08:27-05:00" - }, - "requestId": 1, - "processUrl": "https://checkout-co.placetopay.com/session/1/cc9b8690b1f7228c78b759ce27d7e80a", - } - ``` - ```json {{ title: '401' }} - { - "status": { - "status": "FAILED", - "reason": 401, - "message": "Authentication failed 102", - "date": "2021-11-30T15:12:25-05:00" - }, - } - ``` +```json {{ title: '200' }} +{ + "status": { + "status": "OK", + "reason": "PC", + "message": "The request has been processed successfully", + "date": "2021-11-30T15:08:27-05:00" + }, + "requestId": 1, + "processUrl": "https://checkout-co.placetopay.com/session/1/cc9b8690b1f7228c78b759ce27d7e80a", +} +``` +```json {{ title: '401' }} +{ + "status": { + "status": "FAILED", + "reason": 401, + "message": "Authentication failed 102", + "date": "2021-11-30T15:12:25-05:00" + }, +} +``` @@ -122,18 +422,18 @@ The visual experience with which users interact to complete a payment is identif - ```bash {{ title: 'cURL' }} - curl -X "POST" https://checkout-test.placetopay.com/api/session/000000 \ - -H "Content-Type: application/json" \ - -d '{ - "auth": { - "login": "c51ce410c124a10e0db5e4b97fc2af39", - "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", - "nonce": "NjE0OWVkODgwYjNhNw==", - "seed": "2021-09-21T09:34:48-05:00" - } - }' - ``` +```bash {{ title: 'cURL' }} +curl -X "POST" https://checkout-test.placetopay.com/api/session/000000 \ + -H "Content-Type: application/json" \ + -d '{ + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + } + }' +``` @@ -151,271 +451,778 @@ The visual experience with which users interact to complete a payment is identif
- ```json {{ title: '200' }} +```json {{ title: '200: APROBADO' }} +{ + "requestId": 1, + "status": { + "status": "APPROVED", + "reason": "00", + "message": "La petición ha sido aprobada exitosamente", + "date": "2022-07-27T14:51:27-05:00" + }, + "request": { + "locale": "es_CO", + "payer": { + "document": "1122334455", + "documentType": "CC", + "name": "John", + "surname": "Doe", + "company": "Evertec", + "email": "johndoe@app.com", + "mobile": "+5731111111111", + "address": { + "street": "Calle falsa 123", + "city": "Medellín", + "state": "Poblado", + "postalCode": "55555", + "country": "Colombia", + "phone": "+573111111111" + } + }, + "buyer": { + "document": "1122334455", + "documentType": "CC", + "name": "John", + "surname": "Doe", + "company": "Evertec", + "email": "johndoe@app.com", + "mobile": "+5731111111111", + "address": { + "street": "Calle falsa 123", + "city": "Medellín", + "state": "Poblado", + "postalCode": "55555", + "country": "Colombia", + "phone": "+573111111111" + } + }, + "payment": { + "reference": "12345", + "description": "Prueba de pago", + "amount": { + "currency": "COP", + "total": 2000, + "taxes": [ + { + "kind": "valueAddedTax", + "amount": 1000, + "base": 0 + } + ], + "details": [ + { + "kind": "discount", + "amount": 1000 + } + ] + }, + "allowPartial": false, + "shipping": { + "document": "1122334455", + "documentType": "CC", + "name": "John", + "surname": "Doe", + "company": "Evertec", + "email": "johndoe@app.com", + "mobile": "+5731111111111", + "address": { + "street": "Calle falsa 123", + "city": "Medellín", + "state": "Poblado", + "postalCode": "55555", + "country": "Colombia", + "phone": "+573111111111" + } + }, + "items": [ + { + "sku": "12345", + "name": "product_1", + "category": "physical", + "qty": "1", + "price": 1000, + "tax": 0 + } + ], + "fields": [ + { + "keyword": "_test_field_value_", + "value": "_test_field_", + "displayOn": "approved" + } + ], + "recurring": { + "periodicity": "D", + "interval": "1", + "nextPayment": "2019-08-24", + "maxPeriods": 1, + "dueDate ": "2019-09-24", + "notificationUrl ": "https://checkout.placetopay.com" + }, + "subscribe": false, + "dispersion": [ + { + "agreement": "1299", + "agreementType": "MERCHANT", + "amount": { + "currency": "USD", + "total": 200 + } + } + ], + "modifiers": [ + { + "type": "FEDERAL_GOVERNMENT", + "code": 17934, + "additional": { + "invoice": "123345" + } + } + ] + }, + "subscription": { + "reference": "12345", + "description": "Ejemplo de descripción", + "fields": { + "keyword": "1111", + "value": "lastDigits", + "displayOn": "none" + } + }, + "fields": [ + { + "keyword": "_processUrl_", + "value": "https://checkout.redirection.test/session/1/a592098e22acc709ec7eb30fc0973060", + "displayOn": "none" + } + ], + "paymentMethod": "visa", + "expiration": "2019-08-24T14:15:22Z", + "returnUrl": "https://commerce.test/return", + "cancelUrl": "https://commerce.test/cancel", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox", + "skipResult": false, + "noBuyerFill": false, + "type": "checkin" + }, + "payment": [ { - "requestId": 1, "status": { "status": "APPROVED", "reason": "00", - "message": "The petition has been successfully approved", + "message": "La petición ha sido aprobada exitosamente", "date": "2022-07-27T14:51:27-05:00" }, - "request": { - "locale": "es_CO", - "payer": { - "document": "1122334455", - "documentType": "CC", - "name": "John", - "surname": "Doe", - "company": "Evertec", - "email": "johndoe@app.com", - "mobile": "+5731111111111", - "address": { - "street": "Calle falsa 123", - "city": "Medellín", - "state": "Poblado", - "postalCode": "55555", - "country": "Colombia", - "phone": "+573111111111" - } + "internalReference": 12345, + "reference": "12345", + "paymentMethod": "visa", + "paymentMethodName": "Visa", + "issuerName": "JPMORGAN CHASE BANK, N.A.", + "amount": { + "from": { + "currency ": "COP", + "total ": 10000 }, - "buyer": { - "document": "1122334455", - "documentType": "CC", - "name": "John", - "surname": "Doe", - "company": "Evertec", - "email": "johndoe@app.com", - "mobile": "+5731111111111", - "address": { - "street": "Calle falsa 123", - "city": "Medellín", - "state": "Poblado", - "postalCode": "55555", - "country": "Colombia", - "phone": "+573111111111" - } + "to": { + "currency ": "COP", + "total ": 10000 }, - "payment": { - "reference": "12345", - "description": "Payment test", + "factor": 1 + }, + "receipt": "052617800175", + "franchise": "PS_VS", + "refunded": false, + "authorization": "965960", + "processorFields": [ + { + "keyword": "1111", + "value": "lastDigits", + "displayOn": "none" + } + ], + "dispersion": null, + "agreement": null, + "agreementType": null, + "discount": { + "base": 3000, + "code": "17934", + "type": "FRANCHISE", + "amount": 1000 + }, + "subscription": null + } + ], + "subscription": { + "status": { + "status": "OK", + "reason": "00", + "message": "La petición ha sido aprobada exitosamente", + "date": "2022-07-27T14:51:27-05:00" + }, + "type": "token", + "instrument": [ + { + "keyword": "token", + "value": "a3bfc8e2afb9ac5583922eccd6d2061c1b0592b099f04e352a894f37ae51cf1a", + "displayOn": "none" + }, + { + "keyword": "subtoken", + "value": "8740257204881111", + "displayOn": "none" + }, + { + "keyword": "franchise", + "value": "visa", + "displayOn": "none" + }, + { + "keyword": "franchiseName", + "value": "Visa", + "displayOn": "none" + }, + { + "keyword": "issuerName", + "value": "JPMORGAN CHASE BANK, N.A.", + "displayOn": "none" + }, + { + "keyword": "lastDigits", + "value": "1111", + "displayOn": "none" + }, + { + "keyword": "validUntil", + "value": "2029-12-31", + "displayOn": "none" + }, + { + "keyword": "installments", + "value": null, + "displayOn": "none" + } + ] + } +} +``` +```json {{ title: '200: PENDIENTE'}} +{ + "requestId": 1, + "status": { + "status": "PENDING", + "reason": "PT", + "message": "La petición se encuentra pendiente", + "date": "2021-11-30T15:45:57-05:00" + }, + "request": { + "locale": "es_CO", + "payer": { + "document": "1033332222", + "documentType": "CC", + "name": "Name", + "surname": "lastName", + "email": "dnetix1@app.com", + "mobile": "3111111111", + "address": { + "postalCode": "12345" + } + }, + "payment": { + "reference": "1122334455", + "description": "Prueba", + "amount": { + "currency": "USD", + "total": 1000 + }, + "allowPartial": false, + "subscribe": false + }, + "fields": [ + { + "keyword": "_processUrl_", + "value": "https://test.placetopay.com/redirection/session/1/e0dfb6c7d6ab964b2377c825aef56a63", + "displayOn": "none" + } + ], + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox", + "expiration": "2021-12-30T00:00:00-05:00" + }, + "payment": null, + "subscription": null +} +``` +```json {{ title: '200: RECHAZADO'}} +{ + "requestId": 1, + "status": { + "status": "REJECTED", + "reason": "XN", + "message": "Se ha rechazado la petición", + "date": "2021-11-30T16:44:24-05:00" + }, + "request": { + "locale": "es_CO", + "payer": { + "document": "1033332222", + "documentType": "CC", + "name": "Name", + "surname": "LastName", + "email": "dnetix@app.com", + "mobile": "31111111111", + "address": { + "postalCode": "12345" + } + }, + "payment": { + "reference": "331122", + "description": "Reference", + "amount": { + "currency": "USD", + "total": 500 + }, + "allowPartial": false, + "subscribe": false, + "dispersion": [ + { + "reference": "331122", + "description": "Reference", "amount": { - "currency": "COP", - "total": 2000, - "taxes": [ - { - "kind": "valueAddedTax", - "amount": 1000, - "base": 0 - } - ], - "details": [ - { - "kind": "discount", - "amount": 1000 - } - ] + "currency": "USD", + "total": 200 }, "allowPartial": false, - "shipping": { - "document": "1122334455", - "documentType": "CC", - "name": "John", - "surname": "Doe", - "company": "Evertec", - "email": "johndoe@app.com", - "mobile": "+5731111111111", - "address": { - "street": "Calle falsa 123", - "city": "Medellín", - "state": "Poblado", - "postalCode": "55555", - "country": "Colombia", - "phone": "+573111111111" - } - }, - "items": [ - { - "sku": "12345", - "name": "product_1", - "category": "physical", - "qty": "1", - "price": 1000, - "tax": 0 - } - ], - "fields": [ - { - "keyword": "_test_field_value_", - "value": "_test_field_", - "displayOn": "approved" - } - ], - "recurring": { - "periodicity": "D", - "interval": "1", - "nextPayment": "2019-08-24", - "maxPeriods": 1, - "dueDate ": "2019-09-24", - "notificationUrl ": "https://checkout.placetopay.com" + "subscribe": false, + "agreement": "26", + "agreementType": "AIRLINE" + }, + { + "reference": "331122", + "description": "Reference", + "amount": { + "currency": "USD", + "total": 300 }, + "allowPartial": false, "subscribe": false, - "dispersion": [ - { - "agreement": "1299", - "agreementType": "MERCHANT", - "amount": { - "currency": "USD", - "total": 200 - } - } - ], - "modifiers": [ - { - "type": "FEDERAL_GOVERNMENT", - "code": 17934, - "additional": { - "invoice": "123345" - } - } - ] + "agreementType": "MERCHANT" + } + ] + }, + "fields": [ + { + "keyword": "_processUrl_", + "value": "https://test.placetopay.com/redirection/session/1/1dfbaf16c76c6ee83a63a956d704a9d1", + "displayOn": "none" + } + ], + "returnUrl": "https://redirection.test/home", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox", + "expiration": "2021-12-30T00:00:00-05:00" + }, + "payment": [ + { + "status": { + "status": "REJECTED", + "reason": "65", + "message": "65", + "date": "2021-11-30T16:22:19-05:00" + }, + "internalReference": 1, + "paymentMethod": "visa", + "paymentMethodName": "Visa", + "issuerName": "CAIXA D'ESTALVIS UNIO DE CAIXES DE MANLLEU, SABADE", + "amount": { + "from": { + "currency": "USD", + "total": 500 }, - "subscription": { - "reference": "12345", - "description": "example description", - "fields": { - "keyword": "1111", - "value": "lastDigits", - "displayOn": "none" - } + "to": { + "currency": "USD", + "total": 500 }, - "fields": [ - { - "keyword": "_processUrl_", - "value": "https://checkout.redirection.test/session/1/a592098e22acc709ec7eb30fc0973060", - "displayOn": "none" - } - ], - "paymentMethod": "visa", - "expiration": "2019-08-24T14:15:22Z", - "returnUrl": "https://commerce.test/return", - "cancelUrl": "https://commerce.test/cancel", - "ipAddress": "127.0.0.1", - "userAgent": "PlacetoPay Sandbox", - "skipResult": false, - "noBuyerFill": false, - "type": "checkin" + "factor": 1 }, - "payment": [ + "authorization": "000000", + "reference": "331122", + "franchise": "TS_VS", + "refunded": false, + "processorFields": [ + { + "keyword": "totalAmount", + "value": 500, + "displayOn": "none" + }, + { + "keyword": "lastDigits", + "value": "6853", + "displayOn": "none" + } + ], + "dispersion": [ { "status": { - "status": "APPROVED", - "reason": "00", - "message": "The petition has been successfully approved", - "date": "2022-07-27T14:51:27-05:00" + "status": "REJECTED", + "reason": "65", + "message": "65", + "date": "2021-11-30T16:34:17-05:00" }, - "internalReference": 12345, - "reference": "12345", - "paymentMethod": "visa", - "paymentMethodName": "Visa", - "issuerName": "JPMORGAN CHASE BANK, N.A.", + "internalReference": 2, "amount": { "from": { - "currency ": "COP", - "total ": 10000 + "currency": "USD", + "total": 200 }, "to": { - "currency ": "COP", - "total ": 10000 + "currency": "USD", + "total": 200 }, "factor": 1 }, - "receipt": "052617800175", - "franchise": "PS_VS", + "authorization": "000000", + "franchise": "TS_VS", "refunded": false, - "authorization": "965960", - "processorFields": [ - { - "keyword": "1111", - "value": "lastDigits", - "displayOn": "none" - } - ], - "dispersion": null, - "agreement": null, - "agreementType": null, - "discount": { - "base": 3000, - "code": "17934", - "type": "FRANCHISE", - "amount": 1000 - }, - "subscription": null - } - ], - "subscription": { - "status": { - "status": "OK", - "reason": "00", - "message": "The petition has been successfully approved", - "date": "2022-07-27T14:51:27-05:00" + "agreement": 26, + "agreementType": "AIRLINE" }, - "type": "token", - "instrument": [ - { - "keyword": "token", - "value": "a3bfc8e2afb9ac5583922eccd6d2061c1b0592b099f04e352a894f37ae51cf1a", - "displayOn": "none" + { + "status": { + "status": "REJECTED", + "reason": "?C", + "message": "Pago abortado por el usuario", + "date": "2021-11-30T16:34:17-05:00" }, - { - "keyword": "subtoken", - "value": "8740257204881111", - "displayOn": "none" + "internalReference": 3, + "amount": { + "from": { + "currency": "USD", + "total": 300 + }, + "to": { + "currency": "USD", + "total": 300 + }, + "factor": 1 }, - { - "keyword": "franchise", - "value": "visa", - "displayOn": "none" + "authorization": "000000", + "receipt": "000000", + "franchise": "ID_VS", + "refunded": false, + "agreementType": "MERCHANT" + } + ] + } + ], + "subscription": null +} +``` +```json {{ title: '200: EXPIRADO PARCIALMENTE'}} +{ + "requestId": 1, + "status": { + "status": "PARTIAL_EXPIRED", + "reason": "PX", + "message": "La petición esta expirada o cancelada y se han realizado pagos", + "date": "2023-03-09T17:10:34-05:00" + }, + "request": { + "locale": "es_CO", + "payer": { + "document": "111111111", + "documentType": "CC", + "name": "Diego", + "surname": "Calle", + "email": "dnetix@yopmail.com", + "mobile": "+573111111111" + }, + "payment": { + "reference": "331122", + "description": "Reference", + "amount": { + "currency": "USD", + "total": 500 + }, + "allowPartial": false, + "subscribe": false, + "dispersion": [ + { + "reference": "331122", + "description": "Reference", + "amount": { + "currency": "USD", + "total": 200 }, - { - "keyword": "franchiseName", - "value": "Visa", - "displayOn": "none" + "allowPartial": false, + "subscribe": false, + "agreement": "111", + "agreementType": "MERCHANT" + }, + { + "reference": "331122", + "description": "Reference", + "amount": { + "currency": "USD", + "total": 300 }, - { - "keyword": "issuerName", - "value": "JPMORGAN CHASE BANK, N.A.", - "displayOn": "none" + "allowPartial": false, + "subscribe": false, + "agreementType": "MERCHANT" + } + ] + }, + "fields": [ + { + "keyword": "_processUrl_", + "value": "https://checkout.redirection.test/session/750/20e2eb0d4681a916549e95ed49a11080", + "displayOn": "none" + } + ], + "returnUrl": "https://redirection.test/home", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox", + "expiration": "2023-03-09T23:09:14.946Z" + }, + "payment": [ + { + "amount": { + "to": { + "total": 500, + "currency": "USD" + }, + "from": { + "total": 500, + "currency": "USD" + }, + "factor": 1 + }, + "status": { + "date": "2023-03-09T17:10:14-05:00", + "reason": "61", + "status": "APPROVED_PARTIAL", + "message": "Negada, Monto excede el máximo definido por la Entidad Financiera en el archivo de Tarjetahabientes" + }, + "receipt": "110000857921", + "refunded": false, + "franchise": "EB_VS", + "reference": "331122", + "dispersion": [ + { + "amount": { + "to": { + "total": 200, + "currency": "USD" + }, + "from": { + "total": 200, + "currency": "USD" + }, + "factor": 1 }, - { - "keyword": "lastDigits", - "value": "1111", - "displayOn": "none" + "status": { + "date": "2023-03-09T17:10:14-05:00", + "reason": "00", + "status": "APPROVED", + "message": "Aprobada" }, - { - "keyword": "validUntil", - "value": "2029-12-31", - "displayOn": "none" + "receipt": "110000857921", + "refunded": false, + "franchise": "EB_VS", + "agreementType": "MERCHANT", + "authorization": "614761", + "internalReference": 421692 + }, + { + "amount": { + "to": { + "total": 300, + "currency": "USD" + }, + "from": { + "total": 300, + "currency": "USD" + }, + "factor": 1 }, - { - "keyword": "installments", - "value": null, - "displayOn": "none" - } - ] - } + "status": { + "date": "2023-03-09T17:10:14-05:00", + "reason": "61", + "status": "REJECTED", + "message": "Negada, Monto excede el máximo definido por la Entidad Financiera en el archivo de Tarjetahabientes" + }, + "receipt": "421693", + "refunded": false, + "franchise": "EB_VS", + "agreementType": "MERCHANT", + "authorization": "000000", + "internalReference": 421693 + } + ], + "issuerName": "BANCO DE GUAYAQUIL, S.A.", + "authorization": "614761", + "paymentMethod": "visa", + "processorFields": [ + { + "value": "4549106521651", + "keyword": "merchantCode", + "displayOn": "none" + }, + { + "value": "19371021", + "keyword": "terminalNumber", + "displayOn": "none" + }, + { + "value": "411076", + "keyword": "bin", + "displayOn": "none" + }, + { + "value": 200, + "keyword": "totalAmount", + "displayOn": "none" + }, + { + "value": "0057", + "keyword": "lastDigits", + "displayOn": "none" + }, + { + "value": "eeacbe4f36c8f8117fc4d7ab47fa366f", + "keyword": "id", + "displayOn": "none" + }, + { + "value": "61", + "keyword": "b24", + "displayOn": "none" + } + ], + "internalReference": 421691, + "paymentMethodName": "Visa" } - ``` - ```json {{ title: '401' }} + ], + "subscription": null +} +``` +```json {{ title: '200: APROBADO PARCIALMENTE'}} +{ + "requestId": 1, + "status": { + "status": "APPROVED_PARTIAL", + "reason": "P0", + "message": "La petición está parcialmente aprobada", + "date": "2023-03-09T17:29:13-05:00" + }, + "request": { + "locale": "es_CO", + "payer": { + "document": "111111111", + "documentType": "CC", + "name": "Antonino", + "surname": "Pan y queso", + "email": "root13@app.com", + "mobile": "+573111111111" + }, + "payment": { + "reference": "GAD_1675183488", + "description": "Pago GAD Municipal de Cuenca", + "amount": { + "currency": "COP", + "total": 10000 + }, + "allowPartial": true, + "subscribe": false + }, + "fields": [ + { + "keyword": "_processUrl_", + "value": "https://checkout.redirection.test/session/751/cfe5a789a27feca7fe211bd400db354d", + "displayOn": "none" + } + ], + "returnUrl": "https://mysite.com/response/32120", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox", + "expiration": "2023-03-09T23:28:43.775Z" + }, + "payment": [ { + "amount": { + "to": { + "total": 1.05, + "currency": "USD" + }, + "from": { + "total": 5000, + "currency": "COP" + }, + "factor": 0.00021 + }, "status": { - "status": "FAILED", - "reason": 401, - "message": "Authentication failed 102", - "date": "2021-11-30T15:12:25-05:00" + "date": "2023-03-09T17:29:03-05:00", + "reason": "00", + "status": "APPROVED", + "message": "Aprobada" }, + "receipt": "110000288071", + "refunded": false, + "franchise": "EB_VS", + "reference": "GAD_1675183488", + "issuerName": "JPMORGAN CHASE BANK, N.A.", + "authorization": "614761", + "paymentMethod": "visa", + "processorFields": [ + { + "value": "4549106521651", + "keyword": "merchantCode", + "displayOn": "none" + }, + { + "value": "19371021", + "keyword": "terminalNumber", + "displayOn": "none" + }, + { + "value": "411111", + "keyword": "bin", + "displayOn": "none" + }, + { + "value": "1111", + "keyword": "lastDigits", + "displayOn": "none" + }, + { + "value": "74a6ef63ea0d1fcc78f4c471b0ae7f3d", + "keyword": "id", + "displayOn": "none" + }, + { + "value": "00", + "keyword": "b24", + "displayOn": "none" + } + ], + "internalReference": 421694, + "paymentMethodName": "Visa" } - ``` + ], + "subscription": null +} +``` +```json {{ title: '401' }} +{ + "status": { + "status": "FAILED", + "reason": 401, + "message": "Autenticación fallida 102", + "date": "2021-11-30T15:12:25-05:00" + }, +} +``` - \ No newline at end of file + diff --git a/src/pages/en/checkout/api/reference/token.mdx b/src/pages/en/checkout/api/reference/token.mdx index d0bc8a7..03b7f3b 100644 --- a/src/pages/en/checkout/api/reference/token.mdx +++ b/src/pages/en/checkout/api/reference/token.mdx @@ -24,36 +24,100 @@ The key generated by a subscription process is identified as a token, allowing t - ```bash {{ title: 'cURL' }} - curl -X "POST" https://checkout-test.placetopay.com/api/collect \ - -H "Content-Type: application/json" \ - -d '{ - "locale": "es_CO", - "auth": { - "login": "c51ce410c124a10e0db5e4b97fc2af39", - "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", - "nonce": "NjE0OWVkODgwYjNhNw==", - "seed": "2021-09-21T09:34:48-05:00" - }, - "payment": { - "reference": "1122334455", - "description": "Prueba", - "amount": { - "currency": "USD", - "total": 100 - } - }, - "instrument": { - "token": { - "token": "e07ca9986cf0ecac8a557fa11c07bf37ea35e9e3e3a4180c49" - } - }, - "expiration": "2021-12-30T00:00:00-05:00", - "returnUrl": "https://dnetix.co/p2p/client", - "ipAddress": "127.0.0.1", - "userAgent": "PlacetoPay Sandbox" - }' - ``` +```bash {{ title: 'COBRO CON TOKEN SIMPLE' }} +curl -X "POST" https://checkout-test.placetopay.com/api/collect \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "payment": { + "reference": "1122334455", + "description": "Prueba", + "amount": { + "currency": "USD", + "total": 100 + } + }, + "instrument": { + "token": { + "token": "e07ca9986cf0ecac8a557fa11c07bf37ea35e9e3e3a4180c49" + } + }, + "expiration": "2021-12-30T00:00:00-05:00", + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox" + }' +``` +```bash {{ title: 'COBRO CON TOKEN A UNA PREAUTORUZACIÓN' }} +curl -X "POST" https://checkout-test.placetopay.com/api/collect \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "payment": { + "reference": "1122334455", + "description": "Prueba", + "amount": { + "currency": "USD", + "total": 100 + } + }, + "type": "checkin", + "instrument": { + "token": { + "token": "e07ca9986cf0ecac8a557fa11c07bf37ea35e9e3e3a4180c49" + } + }, + "expiration": "2021-12-30T00:00:00-05:00", + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox" + }' +``` + +```bash {{ title: 'COBRO CON BOLSILLO DE TARJETA' }} +curl -X "POST" https://checkout-test.placetopay.com/api/collect \ + -H "Content-Type: application/json" \ + -d '{ + "locale": "es_CO", + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + "payment": { + "reference": "1122334455", + "description": "Prueba", + "amount": { + "currency": "USD", + "total": 100 + } + }, + "type": "checkin", + "instrument": { + "pocket": 10, + "token": { + "token": "e07ca9986cf0ecac8a557fa11c07bf37ea35e9e3e3a4180c49" + } + }, + "expiration": "2021-12-30T00:00:00-05:00", + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox" + }' +``` @@ -70,200 +134,200 @@ The key generated by a subscription process is identified as a token, allowing t
- ```json {{ title: 'Approved'}} - { - "requestId": 1, - "status": { - "status": "APPROVED", - "reason": "00", - "message": "The petition has been successfully approved", - "date": "2021-11-30T15:49:47-05:00" - }, - "request": { - "locale": "es_CO", - "payer": { - "document": "1033332222", - "documentType": "CC", - "name": "Name", - "surname": "LastName", - "email": "dnetix1@app.com", - "mobile": "3111111111", - "address": { - "postalCode": "12345" - } - }, - "payment": { - "reference": "1122334455", - "description": "Prueba", - "amount": { - "currency": "USD", - "total": 100 - }, - "allowPartial": false, - "subscribe": false - }, - "returnUrl": "https://redirection.test/home", - "ipAddress": "127.0.0.1", - "userAgent": "PlacetoPay Sandbox", - "expiration": "2021-12-30T00:00:00-05:00" - }, - "payment": [ - { - "status": { - "status": "APPROVED", - "reason": "00", - "message": "Aprobada", - "date": "2021-11-30T15:49:36-05:00" - }, - "internalReference": 1, - "paymentMethod": "visa", - "paymentMethodName": "Visa", - "issuerName": "JPMORGAN CHASE BANK, N.A.", - "amount": { - "from": { - "currency": "USD", - "total": 100 - }, - "to": { - "currency": "USD", - "total": 100 - }, - "factor": 1 - }, - "authorization": "000000", - "reference": "1122334455", - "receipt": "241516", - "franchise": "DF_VS", - "refunded": false, - "processorFields": [ - { - "keyword": "lastDigits", - "value": "1111", - "displayOn": "none" - } - ] - } - ], - "subscription": null +```json {{ title: 'Aprobado'}} +{ + "requestId": 1, + "status": { + "status": "APPROVED", + "reason": "00", + "message": "La petición ha sido aprobada exitosamente", + "date": "2021-11-30T15:49:47-05:00" + }, + "request": { + "locale": "es_CO", + "payer": { + "document": "1033332222", + "documentType": "CC", + "name": "Name", + "surname": "LastName", + "email": "dnetix1@app.com", + "mobile": "3111111111", + "address": { + "postalCode": "12345" } - ``` - ```json {{ title: 'Pending' }} - { - "requestId": 1, - "status": { - "status": "PENDING", - "reason": "PT", - "message": "The request is pending", - "date": "2021-11-30T15:45:57-05:00" + }, + "payment": { + "reference": "1122334455", + "description": "Prueba", + "amount": { + "currency": "USD", + "total": 100 + }, + "allowPartial": false, + "subscribe": false + }, + "returnUrl": "https://redirection.test/home", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox", + "expiration": "2021-12-30T00:00:00-05:00" + }, + "payment": [ + { + "status": { + "status": "APPROVED", + "reason": "00", + "message": "Aprobada", + "date": "2021-11-30T15:49:36-05:00" + }, + "internalReference": 1, + "paymentMethod": "visa", + "paymentMethodName": "Visa", + "issuerName": "JPMORGAN CHASE BANK, N.A.", + "amount": { + "from": { + "currency": "USD", + "total": 100 }, - "request": { - "locale": "es_CO", - "payer": { - "document": "1033332222", - "documentType": "CC", - "name": "Name", - "surname": "lastName", - "email": "dnetix1@app.com", - "mobile": "3111111111", - "address": { - "postalCode": "12345" - } - }, - "payment": { - "reference": "1122334455", - "description": "Prueba", - "amount": { - "currency": "USD", - "total": 100 - }, - "allowPartial": false, - "subscribe": false - }, - "returnUrl": "https://dnetix.co/p2p/client", - "ipAddress": "127.0.0.1", - "userAgent": "PlacetoPay Sandbox", - "expiration": "2021-12-30T00:00:00-05:00" + "to": { + "currency": "USD", + "total": 100 }, - "payment": null, - "subscription": null + "factor": 1 + }, + "authorization": "000000", + "reference": "1122334455", + "receipt": "241516", + "franchise": "DF_VS", + "refunded": false, + "processorFields": [ + { + "keyword": "lastDigits", + "value": "1111", + "displayOn": "none" + } + ] + } + ], + "subscription": null +} +``` +```json {{ title: 'Pendiente' }} +{ + "requestId": 1, + "status": { + "status": "PENDING", + "reason": "PT", + "message": "La petición se encuentra pendiente", + "date": "2021-11-30T15:45:57-05:00" + }, + "request": { + "locale": "es_CO", + "payer": { + "document": "1033332222", + "documentType": "CC", + "name": "Name", + "surname": "lastName", + "email": "dnetix1@app.com", + "mobile": "3111111111", + "address": { + "postalCode": "12345" } - ``` - ```json {{ title: 'Rejected' }} - { - "requestId": 1, - "status": { - "status": "REJECTED", - "reason": "XN", - "message": "The request has been rejected", - "date": "2021-11-30T16:44:24-05:00" + }, + "payment": { + "reference": "1122334455", + "description": "Prueba", + "amount": { + "currency": "USD", + "total": 100 + }, + "allowPartial": false, + "subscribe": false + }, + "returnUrl": "https://dnetix.co/p2p/client", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox", + "expiration": "2021-12-30T00:00:00-05:00" + }, + "payment": null, + "subscription": null +} +``` +```json {{ title: 'Rechazado' }} +{ + "requestId": 1, + "status": { + "status": "REJECTED", + "reason": "XN", + "message": "Se ha rechazado la petición", + "date": "2021-11-30T16:44:24-05:00" + }, + "request": { + "locale": "es_CO", + "payer": { + "document": "1033332222", + "documentType": "CC", + "name": "Name", + "surname": "LastName", + "email": "dnetix@app.com", + "mobile": "31111111111", + "address": { + "postalCode": "12345" + } + }, + "payment": { + "reference": "331122", + "description": "Reference", + "amount": { + "currency": "USD", + "total": 500 + }, + "allowPartial": false, + "subscribe": false + }, + "returnUrl": "https://redirection.test/home", + "ipAddress": "127.0.0.1", + "userAgent": "PlacetoPay Sandbox", + "expiration": "2021-12-30T00:00:00-05:00" + }, + "payment": [ + { + "status": { + "status": "REJECTED", + "reason": "65", + "message": "65", + "date": "2021-11-30T16:22:19-05:00" + }, + "internalReference": 1, + "paymentMethod": "visa", + "paymentMethodName": "Visa", + "issuerName": "CAIXA D'ESTALVIS UNIO DE CAIXES DE MANLLEU, SABADE", + "amount": { + "from": { + "currency": "USD", + "total": 100 }, - "request": { - "locale": "es_CO", - "payer": { - "document": "1033332222", - "documentType": "CC", - "name": "Name", - "surname": "LastName", - "email": "dnetix@app.com", - "mobile": "31111111111", - "address": { - "postalCode": "12345" - } - }, - "payment": { - "reference": "331122", - "description": "Reference", - "amount": { - "currency": "USD", - "total": 500 - }, - "allowPartial": false, - "subscribe": false - }, - "returnUrl": "https://redirection.test/home", - "ipAddress": "127.0.0.1", - "userAgent": "PlacetoPay Sandbox", - "expiration": "2021-12-30T00:00:00-05:00" + "to": { + "currency": "USD", + "total": 100 }, - "payment": [ - { - "status": { - "status": "REJECTED", - "reason": "65", - "message": "65", - "date": "2021-11-30T16:22:19-05:00" - }, - "internalReference": 1, - "paymentMethod": "visa", - "paymentMethodName": "Visa", - "issuerName": "CAIXA D'ESTALVIS UNIO DE CAIXES DE MANLLEU, SABADE", - "amount": { - "from": { - "currency": "USD", - "total": 100 - }, - "to": { - "currency": "USD", - "total": 100 - }, - "factor": 1 - }, - "authorization": "000000", - "reference": "331122", - "franchise": "TS_VS", - "refunded": false, - "processorFields": [ - { - "keyword": "lastDigits", - "value": "1111", - "displayOn": "none" - } - ] - } - ], - "subscription": null - } - ``` + "factor": 1 + }, + "authorization": "000000", + "reference": "331122", + "franchise": "TS_VS", + "refunded": false, + "processorFields": [ + { + "keyword": "lastDigits", + "value": "1111", + "displayOn": "none" + } + ] + } + ], + "subscription": null +} +``` @@ -284,26 +348,46 @@ The key generated by a subscription process is identified as a token, allowing t - ```bash {{ title: 'cURL' }} - curl -X "POST" https://checkout-test.placetopay.com/api/instrument/invalidate \ - -H 'Content-Type: application/json' \ - -d '{ - "auth": { - "auth": { - "login": "c51ce410c124a10e0db5e4b97fc2af39", - "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", - "nonce": "NjE0OWVkODgwYjNhNw==", - "seed": "2021-09-21T09:34:48-05:00" - } - }, - "locale": "en_US", - "instrument": { - "token": { - "token": "a3bfc8e2afb9ac5583922eccd6d2061c1b0592b099f04e352a894f37ae51cf1a" - } - } - }' - ``` +```bash {{ title: 'USANDO TOKEN' }} +curl -X "POST" https://checkout-test.placetopay.com/api/instrument/invalidate \ +-H "Content-Type: application/json" \ +-d '{ + "auth": { + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + } + }, + "locale": "en_US", + "instrument": { + "token": { + "token": "a3bfc8e2afb9ac5583922eccd6d2061c1b0592b099f04e352a894f37ae51cf1a" + } + } +}' +``` +```bash {{ title: 'USANDO SUBTOKEN' }} +curl -X "POST" https://checkout-test.placetopay.com/api/instrument/invalidate \ +-H "Content-Type: application/json" \ +-d '{ + "auth": { + "auth": { + "login": "c51ce410c124a10e0db5e4b97fc2af39", + "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", + "nonce": "NjE0OWVkODgwYjNhNw==", + "seed": "2021-09-21T09:34:48-05:00" + }, + }, + "locale": "en_US", + "instrument": { + "token": { + "subtoken": "8740257204881112" + } + } +}' +``` @@ -320,36 +404,36 @@ The key generated by a subscription process is identified as a token, allowing t
- ```json {{ title: 'Approved' }} - { - "status": { - "status": "APPROVED", - "reason": "00", - "message": "The petition has been successfully approved", - "date": "2022-07-27T14:51:27-05:00" - } - } - ``` - ```json {{ title: 'Ok' }} - { - "status": { - "status": "OK", - "reason": "00", - "message": "The petition has been successfully approved", - "date": "2022-07-27T14:51:27-05:00" - } - } - ``` - ```json {{ title: 'Failed' }} - { - "status": { - "status": "FAILED", - "reason": "XN", - "message": "The token used is invalid", - "date": "2022-07-27T14:51:27-05:00" - } - } - ``` +```json {{ title: 'Approved' }} +{ + "status": { + "status": "APPROVED", + "reason": "00", + "message": "The petition has been successfully approved", + "date": "2022-07-27T14:51:27-05:00" + } +} +``` +```json {{ title: 'Ok' }} +{ + "status": { + "status": "OK", + "reason": "00", + "message": "The petition has been successfully approved", + "date": "2022-07-27T14:51:27-05:00" + } +} +``` +```json {{ title: 'Failed' }} +{ + "status": { + "status": "FAILED", + "reason": "XN", + "message": "The token used is invalid", + "date": "2022-07-27T14:51:27-05:00" + } +} +``` \ No newline at end of file