You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an outgoing payment was created for a card payment, the Rafiki backend handling that needs to publish the webhook for that outgoing payment's completion to the card service that initiated it.
Like incoming payments, we can augment the outgoing payment model with an initiatedBy field, and augment outgoing payment webhooks with a metadata: { isCardPayment: true } field for card payments. The webhook service should already handle the metadata field, though it will need additional logic to publish that webhook to the card service - it currently only handles sending webhooks to the POS service when incoming card payments are complete.