{"id":494,"date":"2026-10-27T15:53:14","date_gmt":"2026-10-27T12:53:14","guid":{"rendered":"https:\/\/codeshot.ru\/?p=494"},"modified":"2026-10-27T15:53:14","modified_gmt":"2026-10-27T12:53:14","slug":"shopify-custom-payment-gateway-nodejs-105","status":"publish","type":"post","link":"https:\/\/codeshot.ru\/?p=494","title":{"rendered":"Shopify custom payment gateway nodejs: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434"},"content":{"rendered":"<p>\u0412 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c \u043c\u0438\u0440\u0435 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u043c\u0435\u0440\u0446\u0438\u0438 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u043e\u043f\u043b\u0430\u0442\u044b \u0441\u0442\u0430\u043b\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u043c\u0438 \u0434\u043b\u044f \u043e\u043d\u043b\u0430\u0439\u043d\u2011\u043c\u0430\u0433\u0430\u0437\u0438\u043d\u043e\u0432. \u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 Shopify, \u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u043d\u043a\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c checkout, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e payment gateway \u043d\u0430 Node.js \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c, \u043a\u0430\u043a \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0439 API, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c webhooks \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 Shopify, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u044f \u043f\u0440\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n<h2>\u0420\u0430\u0437\u0431\u043e\u0440 \u0437\u0430\u0434\u0430\u0447\u0438<\/h2>\n<p>Shopify \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0435 \u0448\u043b\u044e\u0437\u044b \u0447\u0435\u0440\u0435\u0437 Custom Payment Gateway API. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0439, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438: \u043e\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0437\u0430\u043a\u0430\u0437\u0435 \u0434\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043e\u0442 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0442\u0430\u043a\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\u041e\u0431\u043c\u0435\u043d \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JSON \u0447\u0435\u0440\u0435\u0437 HTTPS.<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 webhook\u2011\u043e\u0432 \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043f\u043b\u0430\u0442\u0435\u0436\u0430.<\/li>\n<li>\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u2013 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0438 \u0437\u0430\u0449\u0438\u0442\u0430 \u0442\u043e\u043a\u0435\u043d\u043e\u0432.<\/li>\n<li>\u0413\u0438\u0431\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 checkout \u2013 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044f, \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0430\u043b\u044e\u0442\u0443, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043a\u0438\u0434\u043a\u0438.<\/li>\n<\/ul>\n<p>\u041d\u0430\u0448\u0430 \u0446\u0435\u043b\u044c \u2013 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c Node.js\u2011\u0441\u0435\u0440\u0432\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0432 \u0440\u043e\u043b\u0438 \u0448\u043b\u044e\u0437\u0430: \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442 Shopify, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u0445 \u0432 \u0432\u0430\u0448 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0439 API, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u0438 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 webhook\u2011\u044b \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 Shopify.<\/p>\n<h2>\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/h2>\n<p>1. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 Node.js \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b: express, body-parser, axios, dotenv. \u0424\u0430\u0439\u043b .env \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u0435\u043a\u0440\u0435\u0442\u044b API\u2011\u043a\u043b\u044e\u0447\u0435\u0439 \u0438 URL\u2011\u044b.<\/p>\n<p>2. \u0412 \u0444\u0430\u0439\u043b\u0435 server.js \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0434\u0432\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430: \/payment \u0438 \/webhook. \/payment \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u0443\u044e \u043e\u043f\u043b\u0430\u0442\u0443, \/webhook \u2013 \u0437\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e\u0442 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430.<\/p>\n<p>3. \u0412 \/payment \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c POST\u2011\u0437\u0430\u043f\u0440\u043e\u0441 \u043e\u0442 Shopify, \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043a\u0430\u0437\u0430, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c payload \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0433\u043e API \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 axios. \u041f\u0440\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c JSON\u2011\u043e\u0442\u0432\u0435\u0442, \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e\u0449\u0438\u0439 \u043e\u043f\u043b\u0430\u0442\u0443.<\/p>\n<p>4. \u0412 \/webhook \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043e\u0442 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430: success, fail, pending. \u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u043a\u0430\u0437\u0430 \u0432 Shopify \u0447\u0435\u0440\u0435\u0437 API \u2013 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 PATCH\u2011\u0437\u0430\u043f\u0440\u043e\u0441 \u043a endpoint \/admin\/api\/2023\u201110\/orders\/{order_id}.json.<\/p>\n<p>5. \u0414\u043b\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 webhook\u2011\u043e\u0432: \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c HMAC\u2011hash \u0441 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c X-Signature, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u044b\u0439 \u043e\u0442 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430. \u0415\u0441\u043b\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u2013 \u043e\u0442\u043a\u043b\u043e\u043d\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441.<\/p>\n<p>6. \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 sandbox. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Shopify CLI \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0447\u0435\u0440\u0435\u0437 ngrok, \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0448 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d Shopify.<\/p>\n<p>7. \u041f\u0440\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441 \u0432 Docker\u2011\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435, \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 (Heroku, Render, AWS) \u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u0432 Shopify \u043a\u0430\u043a Custom Payment Gateway, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f URL\u2011\u044b \/payment \u0438 \/webhook.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 payment gateway, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 Node.js, \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 webhooks \u0438 \u0433\u0438\u0431\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 checkout, \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a \u0440\u0430\u0431\u043e\u0442\u0435 \u0432 \u0436\u0438\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 Shopify.<\/p>\n<h2>\u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434<\/h2>\n<pre><code class=\"language-javascript\">\/\/ Node.js Express server \u0434\u043b\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0433\u043e \u0448\u043b\u044e\u0437\u0430 Shopify\nconst express = require('express');\nconst bodyParser = require('body-parser');\nconst crypto = require('crypto');\nconst axios = require('axios');\nconst app = express();\napp.use(bodyParser.json());\n\n\/\/ 1. \u0412\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043e\u0442 Shopify\nfunction verifySignature(req, secret) {\n  const hmac = req.get('X-Shopify-Hmac-Sha256');\n  const body = JSON.stringify(req.body);\n  const computed = crypto.createHmac('sha256', secret).update(body).digest('base64');\n  return crypto.timingSafeEqual(Buffer.from(hmac, 'utf8'), Buffer.from(computed, 'utf8'));\n}\n\n\/\/ 2. \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0432\u0435\u0431\u0445\u0443\u043a\u0430 \u043e \u043d\u043e\u0432\u043e\u043c \u0437\u0430\u043a\u0430\u0437\u0435\napp.post('\/webhook\/orders\/create', async (req, res) =&gt; {\n  const secret = process.env.SHOPIFY_SECRET;\n  if (!verifySignature(req, secret)) {\n    return res.status(401).send('Invalid signature');\n  }\n  const order = req.body;\n  \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 Redis\n  const key = `order:${order.id}`;\n  await $redis.set(key, JSON.stringify(order), 'EX', 86400); \/\/ 24 \u0447\u0430\u0441\u0430\n  \/\/ \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u043b\u0430\u0442\u0435\u0436 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435\n  const paymentResponse = await axios.post('https:\/\/api.yourgateway.com\/pay', {\n    amount: order.total_price,\n    currency: order.currency,\n    order_id: order.id,\n    callback_url: `${process.env.APP_URL}\/payment\/callback`\n  });\n  \/\/ \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043e\u043f\u043b\u0430\u0442\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0443\n  $redis.set(`payment:${paymentResponse.data.id}`, order.id, 'EX', 86400);\n  res.status(200).send('Webhook processed');\n});\n\n\/\/ 3. Callback \u043e\u0442 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b\napp.post('\/payment\/callback', async (req, res) =&gt; {\n  const paymentId = req.body.payment_id;\n  const orderId = await $redis.get(`payment:${paymentId}`);\n  if (!orderId) return res.status(404).send('Not found');\n  \/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u043a\u0430\u0437\u0430 \u0432 Shopify\n  await axios.post(`https:\/\/${order.shop}.myshopify.com\/admin\/api\/2024-01\/orders\/${orderId}.json`, {\n    order: { financial_status: 'paid' }\n  }, { headers: { 'X-Shopify-Access-Token': process.env.SHOPIFY_TOKEN } });\n  res.status(200).send('Payment confirmed');\n});\n\napp.listen(process.env.PORT || 3000, () =&gt; console.log('Gateway running'));<\/code><\/pre>\n<h2>\u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438<\/h2>\n<ul>\n<li>\u041f\u043b\u043e\u0445\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 HMAC \u2013 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044f\u043c. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 timingSafeEqual.<\/li>\n<li>\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 JSON \u0438\u0437 \u0432\u0435\u0431\u0445\u0443\u043a\u0430. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e bodyParser \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443.<\/li>\n<li>\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 secret \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f.<\/li>\n<li>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 async\u2011\u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 try\/catch.<\/li>\n<\/ul>\n<h2>FAQ<\/h2>\n<h3>\u041a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c webhook \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 Shopify?<\/h3>\n<p>\u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00bb \u2192 \u00ab\u0412\u0435\u0431\u0445\u0443\u043a\u0438\u00bb \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 webhook, \u0443\u043a\u0430\u0436\u0438\u0442\u0435 URL \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u00abOrder creation\u00bb.<\/p>\n<h3>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u044f\u0437\u044b\u043a \u0432\u043c\u0435\u0441\u0442\u043e Node.js?<\/h3>\n<p>\u0414\u0430, \u043d\u043e \u0432\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430: \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 HMAC, \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0432 Redis, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 API Shopify. \u041f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b \u2013 Python, Ruby, Go.<\/p>\n<h3>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u043f\u043b\u0430\u0442\u0435\u0436 \u043d\u0435 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f?<\/h3>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043b\u043e\u0433\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e callback\u2011URL \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0435\u043d. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0439 \u0448\u043b\u044e\u0437 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 POST\u2011\u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c payload.<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0412 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435, \u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u0447\u0435\u043a\u2011\u043b\u0438\u0441\u0442:<\/p>\n<ul>\n<li>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 HMAC\u2011\u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044e.<\/li>\n<li>\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435, \u0447\u0442\u043e Redis \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d.<\/li>\n<li>\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e webhook \u0438 callback\u2011URL \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b.<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.<\/li>\n<li>\u041f\u0440\u043e\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0437\u0430\u043a\u0430\u0437 \u0447\u0435\u0440\u0435\u0437 sandbox\u2011\u0440\u0435\u0436\u0438\u043c.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 payment gateway \u0434\u043b\u044f Shopify \u0441 Node.js \u0438 webhook\u2011\u0430\u043c\u0438. \u0423\u0432\u0435\u043b\u0438\u0447\u044c\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 checkout \u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0441 \u0432\u0430\u0448\u0438\u043c API \u2013 \u043d\u0430\u0447\u043d\u0438\u0442\u0435 \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f!<\/p>\n","protected":false},"author":2,"featured_media":495,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41,43,4,1],"tags":[155,154,153],"class_list":["post-494","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-coding","category-js","category-about-all","tag-nodejs","tag-payment-gateway","tag-shopify"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Shopify custom payment gateway nodejs: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 - CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434<\/title>\n<meta name=\"description\" content=\"\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 payment gateway \u0434\u043b\u044f Shopify \u0441 Node.js \u0438 webhook\u2011\u0430\u043c\u0438. \u0423\u0432\u0435\u043b\u0438\u0447\u044c\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 checkout \u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0441 \u0432\u0430\u0448\u0438\u043c API \u2013 \u043d\u0430\u0447\u043d\u0438\u0442\u0435 \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeshot.ru\/?p=494\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Shopify custom payment gateway nodejs: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 - CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434\" \/>\n<meta property=\"og:description\" content=\"\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 payment gateway \u0434\u043b\u044f Shopify \u0441 Node.js \u0438 webhook\u2011\u0430\u043c\u0438. \u0423\u0432\u0435\u043b\u0438\u0447\u044c\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 checkout \u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0441 \u0432\u0430\u0448\u0438\u043c API \u2013 \u043d\u0430\u0447\u043d\u0438\u0442\u0435 \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeshot.ru\/?p=494\" \/>\n<meta property=\"og:site_name\" content=\"CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-27T12:53:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeshot.ru\/wp-content\/uploads\/2026\/10\/shopify-custom-payment-gateway-nodejs-d0bfd0bed188d0b0d0b3d0bed0b2d18bd0b9-d0b3d0b0d0b9d0b4-101.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u0410\u043d\u0442\u043e\u043d \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0410\u043d\u0442\u043e\u043d \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u043c\u0438\u043d\u0443\u0442\u044b\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codeshot.ru\/?p=494#article\",\"isPartOf\":{\"@id\":\"https:\/\/codeshot.ru\/?p=494\"},\"author\":{\"name\":\"\u0410\u043d\u0442\u043e\u043d \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447\",\"@id\":\"https:\/\/codeshot.ru\/#\/schema\/person\/ae4675b745dd574854e37ce5240ecace\"},\"headline\":\"Shopify custom payment gateway nodejs: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434\",\"datePublished\":\"2026-10-27T12:53:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codeshot.ru\/?p=494\"},\"wordCount\":543,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codeshot.ru\/#organization\"},\"image\":{\"@id\":\"https:\/\/codeshot.ru\/?p=494#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codeshot.ru\/wp-content\/uploads\/2026\/10\/shopify-custom-payment-gateway-nodejs-d0bfd0bed188d0b0d0b3d0bed0b2d18bd0b9-d0b3d0b0d0b9d0b4-101.jpg\",\"keywords\":[\"nodejs\",\"payment gateway\",\"shopify\"],\"articleSection\":[\"API\",\"Coding\",\"JS \u043a\u043e\u0434 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b\",\"\u041e\u0431\u043e \u0432\u0441\u0451\u043c\"],\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codeshot.ru\/?p=494#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codeshot.ru\/?p=494\",\"url\":\"https:\/\/codeshot.ru\/?p=494\",\"name\":\"Shopify custom payment gateway nodejs: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 - CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434\",\"isPartOf\":{\"@id\":\"https:\/\/codeshot.ru\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codeshot.ru\/?p=494#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codeshot.ru\/?p=494#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codeshot.ru\/wp-content\/uploads\/2026\/10\/shopify-custom-payment-gateway-nodejs-d0bfd0bed188d0b0d0b3d0bed0b2d18bd0b9-d0b3d0b0d0b9d0b4-101.jpg\",\"datePublished\":\"2026-10-27T12:53:14+00:00\",\"description\":\"\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 payment gateway \u0434\u043b\u044f Shopify \u0441 Node.js \u0438 webhook\u2011\u0430\u043c\u0438. \u0423\u0432\u0435\u043b\u0438\u0447\u044c\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 checkout \u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0441 \u0432\u0430\u0448\u0438\u043c API \u2013 \u043d\u0430\u0447\u043d\u0438\u0442\u0435 \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f!\",\"breadcrumb\":{\"@id\":\"https:\/\/codeshot.ru\/?p=494#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codeshot.ru\/?p=494\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/codeshot.ru\/?p=494#primaryimage\",\"url\":\"https:\/\/codeshot.ru\/wp-content\/uploads\/2026\/10\/shopify-custom-payment-gateway-nodejs-d0bfd0bed188d0b0d0b3d0bed0b2d18bd0b9-d0b3d0b0d0b9d0b4-101.jpg\",\"contentUrl\":\"https:\/\/codeshot.ru\/wp-content\/uploads\/2026\/10\/shopify-custom-payment-gateway-nodejs-d0bfd0bed188d0b0d0b3d0bed0b2d18bd0b9-d0b3d0b0d0b9d0b4-101.jpg\",\"width\":1024,\"height\":576},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codeshot.ru\/?p=494#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/codeshot.ru\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shopify custom payment gateway nodejs: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codeshot.ru\/#website\",\"url\":\"https:\/\/codeshot.ru\/\",\"name\":\"CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434\",\"description\":\"\u0420\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u0441\u0430\u0439\u0442\u043e\u0432, \u043c\u043e\u0431\u0438\u043b\u043e\u043a \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432!\",\"publisher\":{\"@id\":\"https:\/\/codeshot.ru\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codeshot.ru\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codeshot.ru\/#organization\",\"name\":\"CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434\",\"url\":\"https:\/\/codeshot.ru\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/codeshot.ru\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/codeshot.ru\/wp-content\/uploads\/2025\/04\/logo-agency.png\",\"contentUrl\":\"https:\/\/codeshot.ru\/wp-content\/uploads\/2025\/04\/logo-agency.png\",\"width\":200,\"height\":200,\"caption\":\"CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434\"},\"image\":{\"@id\":\"https:\/\/codeshot.ru\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/codeshot.ru\/#\/schema\/person\/ae4675b745dd574854e37ce5240ecace\",\"name\":\"\u0410\u043d\u0442\u043e\u043d \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/codeshot.ru\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/12cc23cc07df127aea83020242b93fad313980fe7ec7ae6915395c9e002a891f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/12cc23cc07df127aea83020242b93fad313980fe7ec7ae6915395c9e002a891f?s=96&d=mm&r=g\",\"caption\":\"\u0410\u043d\u0442\u043e\u043d \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447\"},\"url\":\"https:\/\/codeshot.ru\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Shopify custom payment gateway nodejs: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 - CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434","description":"\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 payment gateway \u0434\u043b\u044f Shopify \u0441 Node.js \u0438 webhook\u2011\u0430\u043c\u0438. \u0423\u0432\u0435\u043b\u0438\u0447\u044c\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 checkout \u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0441 \u0432\u0430\u0448\u0438\u043c API \u2013 \u043d\u0430\u0447\u043d\u0438\u0442\u0435 \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codeshot.ru\/?p=494","og_locale":"ru_RU","og_type":"article","og_title":"Shopify custom payment gateway nodejs: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 - CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434","og_description":"\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 payment gateway \u0434\u043b\u044f Shopify \u0441 Node.js \u0438 webhook\u2011\u0430\u043c\u0438. \u0423\u0432\u0435\u043b\u0438\u0447\u044c\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 checkout \u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0441 \u0432\u0430\u0448\u0438\u043c API \u2013 \u043d\u0430\u0447\u043d\u0438\u0442\u0435 \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f!","og_url":"https:\/\/codeshot.ru\/?p=494","og_site_name":"CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434","article_published_time":"2026-10-27T12:53:14+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/codeshot.ru\/wp-content\/uploads\/2026\/10\/shopify-custom-payment-gateway-nodejs-d0bfd0bed188d0b0d0b3d0bed0b2d18bd0b9-d0b3d0b0d0b9d0b4-101.jpg","type":"image\/jpeg"}],"author":"\u0410\u043d\u0442\u043e\u043d \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"\u0410\u043d\u0442\u043e\u043d \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"2 \u043c\u0438\u043d\u0443\u0442\u044b"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codeshot.ru\/?p=494#article","isPartOf":{"@id":"https:\/\/codeshot.ru\/?p=494"},"author":{"name":"\u0410\u043d\u0442\u043e\u043d \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447","@id":"https:\/\/codeshot.ru\/#\/schema\/person\/ae4675b745dd574854e37ce5240ecace"},"headline":"Shopify custom payment gateway nodejs: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434","datePublished":"2026-10-27T12:53:14+00:00","mainEntityOfPage":{"@id":"https:\/\/codeshot.ru\/?p=494"},"wordCount":543,"commentCount":0,"publisher":{"@id":"https:\/\/codeshot.ru\/#organization"},"image":{"@id":"https:\/\/codeshot.ru\/?p=494#primaryimage"},"thumbnailUrl":"https:\/\/codeshot.ru\/wp-content\/uploads\/2026\/10\/shopify-custom-payment-gateway-nodejs-d0bfd0bed188d0b0d0b3d0bed0b2d18bd0b9-d0b3d0b0d0b9d0b4-101.jpg","keywords":["nodejs","payment gateway","shopify"],"articleSection":["API","Coding","JS \u043a\u043e\u0434 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b","\u041e\u0431\u043e \u0432\u0441\u0451\u043c"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeshot.ru\/?p=494#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeshot.ru\/?p=494","url":"https:\/\/codeshot.ru\/?p=494","name":"Shopify custom payment gateway nodejs: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 - CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434","isPartOf":{"@id":"https:\/\/codeshot.ru\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeshot.ru\/?p=494#primaryimage"},"image":{"@id":"https:\/\/codeshot.ru\/?p=494#primaryimage"},"thumbnailUrl":"https:\/\/codeshot.ru\/wp-content\/uploads\/2026\/10\/shopify-custom-payment-gateway-nodejs-d0bfd0bed188d0b0d0b3d0bed0b2d18bd0b9-d0b3d0b0d0b9d0b4-101.jpg","datePublished":"2026-10-27T12:53:14+00:00","description":"\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 payment gateway \u0434\u043b\u044f Shopify \u0441 Node.js \u0438 webhook\u2011\u0430\u043c\u0438. \u0423\u0432\u0435\u043b\u0438\u0447\u044c\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 checkout \u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0441 \u0432\u0430\u0448\u0438\u043c API \u2013 \u043d\u0430\u0447\u043d\u0438\u0442\u0435 \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f!","breadcrumb":{"@id":"https:\/\/codeshot.ru\/?p=494#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeshot.ru\/?p=494"]}]},{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/codeshot.ru\/?p=494#primaryimage","url":"https:\/\/codeshot.ru\/wp-content\/uploads\/2026\/10\/shopify-custom-payment-gateway-nodejs-d0bfd0bed188d0b0d0b3d0bed0b2d18bd0b9-d0b3d0b0d0b9d0b4-101.jpg","contentUrl":"https:\/\/codeshot.ru\/wp-content\/uploads\/2026\/10\/shopify-custom-payment-gateway-nodejs-d0bfd0bed188d0b0d0b3d0bed0b2d18bd0b9-d0b3d0b0d0b9d0b4-101.jpg","width":1024,"height":576},{"@type":"BreadcrumbList","@id":"https:\/\/codeshot.ru\/?p=494#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/codeshot.ru\/"},{"@type":"ListItem","position":2,"name":"Shopify custom payment gateway nodejs: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434"}]},{"@type":"WebSite","@id":"https:\/\/codeshot.ru\/#website","url":"https:\/\/codeshot.ru\/","name":"CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434","description":"\u0420\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u0441\u0430\u0439\u0442\u043e\u0432, \u043c\u043e\u0431\u0438\u043b\u043e\u043a \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432!","publisher":{"@id":"https:\/\/codeshot.ru\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeshot.ru\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Organization","@id":"https:\/\/codeshot.ru\/#organization","name":"CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434","url":"https:\/\/codeshot.ru\/","logo":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/codeshot.ru\/#\/schema\/logo\/image\/","url":"https:\/\/codeshot.ru\/wp-content\/uploads\/2025\/04\/logo-agency.png","contentUrl":"https:\/\/codeshot.ru\/wp-content\/uploads\/2025\/04\/logo-agency.png","width":200,"height":200,"caption":"CODESHOT - \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043a\u043e\u0434"},"image":{"@id":"https:\/\/codeshot.ru\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/codeshot.ru\/#\/schema\/person\/ae4675b745dd574854e37ce5240ecace","name":"\u0410\u043d\u0442\u043e\u043d \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/codeshot.ru\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/12cc23cc07df127aea83020242b93fad313980fe7ec7ae6915395c9e002a891f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/12cc23cc07df127aea83020242b93fad313980fe7ec7ae6915395c9e002a891f?s=96&d=mm&r=g","caption":"\u0410\u043d\u0442\u043e\u043d \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447"},"url":"https:\/\/codeshot.ru\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/codeshot.ru\/index.php?rest_route=\/wp\/v2\/posts\/494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeshot.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeshot.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeshot.ru\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/codeshot.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=494"}],"version-history":[{"count":0,"href":"https:\/\/codeshot.ru\/index.php?rest_route=\/wp\/v2\/posts\/494\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeshot.ru\/index.php?rest_route=\/wp\/v2\/media\/495"}],"wp:attachment":[{"href":"https:\/\/codeshot.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeshot.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeshot.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}