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

# Payment created Trigger

## When is it triggered?

The "Payment created" Trigger is the starting point for your payment workflows. The "Payment created" Trigger will listen for payment creation requests and, once received, will start the workflow. This includes:

* payments created via Universal Checkout and via the Payments API. Learn more about creating payments [here](/get-started/set-up-a-checkout#step-3-set-up-universal-checkout)
* both customer-initiated payments (CITs) and merchant-initiated payments (MITs)

<Frame caption="Example workflow">
  <img src="https://mintcdn.com/primer-cc826789/xLgoTOSuc1hi-Q-M/images/workflows/img_example.png?fit=max&auto=format&n=xLgoTOSuc1hi-Q-M&q=85&s=afff550a5abc14d8eb92e6bc3b9d823d" alt="Example workflow" width="1536" height="876" data-path="images/workflows/img_example.png" />
</Frame>

<Note>
  You must have at least one workflow that has the "Payment created" Trigger in order to process payments - see the [Process payments](/get-started/create-workflow#step-2-set-up-a-workflow) guide to learn more.
</Note>

## Use cases

All your initial payment flows will need to start with the "Payment created" Trigger. Based on your needs, you can utilize it in a few ways. Below are some examples for inspiration:

<Tip>
  A single payment workflow for all payments that:

  * routes to two different processor merchant accounts based on the order country
  * captures the payment if authorization was successful
</Tip>

<Frame caption="Use Case 1">
  <img src="https://mintcdn.com/primer-cc826789/sTKljbqk0yjiDnE9/images/workflows/use_case_1.png?fit=max&auto=format&n=sTKljbqk0yjiDnE9&q=85&s=a83bfe6920c683c85bc5494ae3bb7246" alt="Use Case 1" width="1536" height="864" data-path="images/workflows/use_case_1.png" />
</Frame>

<Tip>
  A payment workflow that only handles merchant-initiated transactions (MITs) as you might want to send all MITs to a separate processor versus your customer-initiated transactions (CITs).
</Tip>

<Frame caption="Use Case 2">
  <img src="https://mintcdn.com/primer-cc826789/sTKljbqk0yjiDnE9/images/workflows/use_case_2.png?fit=max&auto=format&n=sTKljbqk0yjiDnE9&q=85&s=bef327c8bbd2ee0468977433fc525e4f" alt="Use Case 2" width="1536" height="876" data-path="images/workflows/use_case_2.png" />
</Frame>

<Tip>
  A payment flow that uses a Trigger Condition based on metadata and only authorizes the payment, where the capture will take place via API

  This is popular in micromobility where the amount to capture is unknown at the time of authorization.
</Tip>

<Frame caption="Use Case 3">
  <img src="https://mintcdn.com/primer-cc826789/sTKljbqk0yjiDnE9/images/workflows/use_case_3.png?fit=max&auto=format&n=sTKljbqk0yjiDnE9&q=85&s=d7209633975a28f901e3dfd49d48328a" alt="Use Case 3" width="1536" height="876" data-path="images/workflows/use_case_3.png" />
</Frame>

## How to set up multiple workflows that use this Trigger

Trigger Conditions allow you to set conditions that determine if a workflow should be started. Only if both the triggering event and Trigger Conditions are met will your workflow start executing.

<Warning>
  If you want to set up multiple workflows with this Trigger, you **need** to set Trigger Conditions when setting up your workflow - if not, it's possible to have more than one authorization request for a single payment request which must be avoided.
</Warning>
