עקבו אחרינו:

live

תמיכה חיה

← חזרה למשאבים

מדריך

הגדרת Webhook

קבלו התראות אוטומטיות על כל אירוע — תשלום שהתקבל, כרטיס שנכשל, החזר כספי ועוד.

אירועים זמינים

payment.succeeded
payment.failed
refund.created
dispute.opened
subscription.renewed

קוד לדוגמה — Node.js

app.post('/webhook', (req, res) => {
  const event = telepay.webhooks.verify(req);
  // handle event
  if (event.type === 'payment.succeeded') {
    fulfillOrder(event.data.orderId);
  }
  res.json({ received: true });
});

מרכז המפתחים ←

Website By TalPress