PaymentProcessed
v0.0.1

Holds information about the payment that has been processed.
When firing this event make sure you set the `correlation-id` in the headers. Our schemas have standard metadata make sure you read and follow it.

Details

This event is triggered when the payment has succesfully been processed for a customers orders.

We use Stripe to handle customer payments. The Payment Service listens for Stripe webhooks and raises the PaymentProcessed event.

Consumer/Producer Diagram

PaymentProcessed Schema (json)
{
  "$id": "https://example.com/PaymentProcessed.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "PaymentProcessed",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object",
      "properties": {
        "correlationId": {
          "type": "string",
          "description": "The ID of the user"
        },
        "domain": {
          "type": "string",
          "description": "The domain of the event"
        },
        "service": {
          "type": "string",
          "description": "The name of the service that triggered the event"
        }
      },
      "required": ["correlationId", "domain", "service"]
    },
    "data": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "string",
          "description": "The ID of the user"
        },
        "orderId": {
          "type": "string",
          "description": "The ID the users order"
        },
        "stripeId": {
          "type": "string",
          "description": "The ID the payment handled in stripe"
        }
      }
    }
  }
}
Edit this pageLast updated on 2024/1/16