{"id":326,"date":"2026-04-23T17:15:14","date_gmt":"2026-04-23T14:15:14","guid":{"rendered":"https:\/\/ai.telepay.wp-temp.co.il\/?page_id=326"},"modified":"2026-04-23T17:15:14","modified_gmt":"2026-04-23T14:15:14","slug":"webhook-guide","status":"publish","type":"page","link":"https:\/\/ai.telepay.wp-temp.co.il\/?page_id=326","title":{"rendered":"\u05d4\u05d2\u05d3\u05e8\u05ea Webhook"},"content":{"rendered":"<div style=\"direction:rtl;font-family:'Heebo','Inter',sans-serif;max-width:800px;margin:0 auto;padding:48px 32px\">\n<div style=\"margin-bottom:12px\"><a href=\"\/?page_id=268\" style=\"color:#0057b8;text-decoration:none;font-size:.88em\">\u2190 \u05d7\u05d6\u05e8\u05d4 \u05dc\u05de\u05e9\u05d0\u05d1\u05d9\u05dd<\/a><\/div>\n<p><span style=\"display:inline-block;background:#e8f0fe;color:#0057b8;padding:3px 12px;border-radius:20px;font-size:.8em;font-weight:600;margin-bottom:16px\">\u05de\u05d3\u05e8\u05d9\u05da<\/span><\/p>\n<h1 style=\"font-size:2.2em;font-weight:900;color:#0a1a3e;margin-bottom:16px;letter-spacing:-.03em\">\u05d4\u05d2\u05d3\u05e8\u05ea Webhook<\/h1>\n<p style=\"color:#64748b;font-size:1.05em;line-height:1.7;margin-bottom:40px\">\u05e7\u05d1\u05dc\u05d5 \u05d4\u05ea\u05e8\u05d0\u05d5\u05ea \u05d0\u05d5\u05d8\u05d5\u05de\u05d8\u05d9\u05d5\u05ea \u05e2\u05dc \u05db\u05dc \u05d0\u05d9\u05e8\u05d5\u05e2 \u2014 \u05ea\u05e9\u05dc\u05d5\u05dd \u05e9\u05d4\u05ea\u05e7\u05d1\u05dc, \u05db\u05e8\u05d8\u05d9\u05e1 \u05e9\u05e0\u05db\u05e9\u05dc, \u05d4\u05d7\u05d6\u05e8 \u05db\u05e1\u05e4\u05d9 \u05d5\u05e2\u05d5\u05d3.<\/p>\n<h2 style=\"font-size:1.4em;font-weight:700;color:#0a1a3e;margin-bottom:12px\">\u05d0\u05d9\u05e8\u05d5\u05e2\u05d9\u05dd \u05d6\u05de\u05d9\u05e0\u05d9\u05dd<\/h2>\n<div style=\"display:grid;gap:10px;margin-bottom:32px\">\n<div style=\"background:#f8faff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 18px;font-family:monospace;font-size:.9em;color:#0057b8;display:flex;align-items:center;gap:12px\"><span style=\"color:#7dc242\">\u25cf<\/span>payment.succeeded<\/div>\n<div style=\"background:#f8faff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 18px;font-family:monospace;font-size:.9em;color:#0057b8;display:flex;align-items:center;gap:12px\"><span style=\"color:#7dc242\">\u25cf<\/span>payment.failed<\/div>\n<div style=\"background:#f8faff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 18px;font-family:monospace;font-size:.9em;color:#0057b8;display:flex;align-items:center;gap:12px\"><span style=\"color:#7dc242\">\u25cf<\/span>refund.created<\/div>\n<div style=\"background:#f8faff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 18px;font-family:monospace;font-size:.9em;color:#0057b8;display:flex;align-items:center;gap:12px\"><span style=\"color:#7dc242\">\u25cf<\/span>dispute.opened<\/div>\n<div style=\"background:#f8faff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 18px;font-family:monospace;font-size:.9em;color:#0057b8;display:flex;align-items:center;gap:12px\"><span style=\"color:#7dc242\">\u25cf<\/span>subscription.renewed<\/div>\n<\/div>\n<h2 style=\"font-size:1.4em;font-weight:700;color:#0a1a3e;margin-bottom:12px\">\u05e7\u05d5\u05d3 \u05dc\u05d3\u05d5\u05d2\u05de\u05d4 \u2014 Node.js<\/h2>\n<div style=\"background:#0f172a;color:#e2e8f0;font-family:monospace;border-radius:10px;padding:24px;font-size:.85em;line-height:1.8;direction:ltr;margin-bottom:32px\">\n<span style=\"color:#7dd3fc\">app<\/span>.<span style=\"color:#86efac\">post<\/span>(<span style=\"color:#fbbf24\">'\/webhook'<\/span>, (req, res) => {<br \/>\n&nbsp;&nbsp;<span style=\"color:#7dd3fc\">const<\/span> event = telepay.webhooks.verify(req);<br \/>\n&nbsp;&nbsp;<span style=\"color:#94a3b8\">\/\/ handle event<\/span><br \/>\n&nbsp;&nbsp;<span style=\"color:#7dd3fc\">if<\/span> (event.type === <span style=\"color:#fbbf24\">'payment.succeeded'<\/span>) {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;fulfillOrder(event.data.orderId);<br \/>\n&nbsp;&nbsp;}<br \/>\n&nbsp;&nbsp;res.json({ received: <span style=\"color:#7dd3fc\">true<\/span> });<br \/>\n});\n<\/div>\n<p><a href=\"\/?page_id=267\" style=\"background:#0057b8;color:#fff;padding:13px 28px;border-radius:8px;font-weight:700;text-decoration:none;display:inline-block\">\u05de\u05e8\u05db\u05d6 \u05d4\u05de\u05e4\u05ea\u05d7\u05d9\u05dd \u2190<\/a>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u2190 \u05d7\u05d6\u05e8\u05d4 \u05dc\u05de\u05e9\u05d0\u05d1\u05d9\u05dd \u05de\u05d3\u05e8\u05d9\u05da \u05d4\u05d2\u05d3\u05e8\u05ea Webhook \u05e7\u05d1\u05dc\u05d5 \u05d4\u05ea\u05e8\u05d0\u05d5\u05ea \u05d0\u05d5\u05d8\u05d5\u05de\u05d8\u05d9\u05d5\u05ea \u05e2\u05dc \u05db\u05dc \u05d0\u05d9\u05e8\u05d5\u05e2 \u2014 \u05ea\u05e9\u05dc\u05d5\u05dd \u05e9\u05d4\u05ea\u05e7\u05d1\u05dc, \u05db\u05e8\u05d8\u05d9\u05e1 \u05e9\u05e0\u05db\u05e9\u05dc, \u05d4\u05d7\u05d6\u05e8 \u05db\u05e1\u05e4\u05d9 \u05d5\u05e2\u05d5\u05d3. \u05d0\u05d9\u05e8\u05d5\u05e2\u05d9\u05dd \u05d6\u05de\u05d9\u05e0\u05d9\u05dd \u25cfpayment.succeeded \u25cfpayment.failed \u25cfrefund.created \u25cfdispute.opened \u25cfsubscription.renewed \u05e7\u05d5\u05d3 \u05dc\u05d3\u05d5\u05d2\u05de\u05d4 \u2014 Node.js app.post('\/webhook', (req, res) => { &nbsp;&nbsp;const event = telepay.webhooks.verify(req); &nbsp;&nbsp;\/\/ handle event &nbsp;&nbsp;if (event.type === 'payment.succeeded') { &nbsp;&nbsp;&nbsp;&nbsp;fulfillOrder(event.data.orderId); &nbsp;&nbsp;} &nbsp;&nbsp;res.json({ received: true }); }); [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":268,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-326","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/ai.telepay.wp-temp.co.il\/index.php?rest_route=\/wp\/v2\/pages\/326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ai.telepay.wp-temp.co.il\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ai.telepay.wp-temp.co.il\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ai.telepay.wp-temp.co.il\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.telepay.wp-temp.co.il\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=326"}],"version-history":[{"count":0,"href":"https:\/\/ai.telepay.wp-temp.co.il\/index.php?rest_route=\/wp\/v2\/pages\/326\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/ai.telepay.wp-temp.co.il\/index.php?rest_route=\/wp\/v2\/pages\/268"}],"wp:attachment":[{"href":"https:\/\/ai.telepay.wp-temp.co.il\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}