> ## Documentation Index
> Fetch the complete documentation index at: https://docs.debitdirect.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Flow

Processing Leverandørservice transactions involves multiple parties working together to ensure seamless mandate creation and payment processing. The following sequence diagram illustrates the key interactions between the Enterprise, Mastercard, Bank, Debitdirect, and the Independent Software Vendor (ISV).

All events are processed asynchronously to ensure efficiency and reliability.

```mermaid theme={null}
sequenceDiagram
  Enterprise->>Mastercard: Create LS mandate via webform, bank or API
  Mastercard->>Bank: Validate and issue mandate.
  Mastercard->>Debitdirect: Mandate exchange (Process)
  Debitdirect->>ISV: Mandate created event (webhook)
  
  ISV->>Debitdirect: Create payment (via API)
  Debitdirect->>Mastercard: Schedule payment (Process)
  Mastercard->>Bank: Transact payment (debit process)
  Mastercard->>Debitdirect: Settle payment (Process)
  Debitdirect->>ISV: Settle payment event (webhook)
```

As an Independent Software Vendor (ISV), you will primarily interact with Debitdirect's API to create payments after receiving mandate creation events via webhooks. Debitdirect handles the complex interactions with Mastercard and the banks, ensuring that mandates are validated and payments are processed efficiently.
