Skip to content
BPMN 2.0 templates

BPMN — online payment

Customer payment flow with gateway and validation gateways.

Template previewBPMN 2.0
Rendering…

Make it your own.

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
  xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
  xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
  id="Defs_Pay" targetNamespace="http://flowss.ai/bpmn">
  <bpmn:process id="pay" isExecutable="true">
    <bpmn:startEvent id="s" name="Start"/>
    <bpmn:task id="t1" name="Enter card"/>
    <bpmn:task id="t2" name="Authorise"/>
    <bpmn:exclusiveGateway id="g1" name="Authorised?"/>
    <bpmn:task id="t3" name="Capture"/>
    <bpmn:task id="t4" name="Decline"/>
    <bpmn:endEvent id="e" name="End"/>
    <bpmn:sequenceFlow id="f1" sourceRef="s"  targetRef="t1"/>
    <bpmn:sequenceFlow id="f2" sourceRef="t1" targetRef="t2"/>
    <bpmn:sequenceFlow id="f3" sourceRef="t2" targetRef="g1"/>
    <bpmn:sequenceFlow id="f4" name="yes" sourceRef="g1" targetRef="t3"/>
    <bpmn:sequenceFlow id="f5" name="no"  sourceRef="g1" targetRef="t4"/>
    <bpmn:sequenceFlow id="f6" sourceRef="t3" targetRef="e"/>
    <bpmn:sequenceFlow id="f7" sourceRef="t4" targetRef="e"/>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="D">
    <bpmndi:BPMNPlane bpmnElement="pay">
      <bpmndi:BPMNShape bpmnElement="s"><dc:Bounds x="40"  y="160" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="t1"><dc:Bounds x="120" y="138" width="100" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="t2"><dc:Bounds x="260" y="138" width="100" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="g1" isMarkerVisible="true"><dc:Bounds x="400" y="153" width="50" height="50"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="t3"><dc:Bounds x="500" y="60"  width="100" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="t4"><dc:Bounds x="500" y="220" width="100" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="e"><dc:Bounds x="660" y="160" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="f1"><di:waypoint x="76"  y="178"/><di:waypoint x="120" y="178"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f2"><di:waypoint x="220" y="178"/><di:waypoint x="260" y="178"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f3"><di:waypoint x="360" y="178"/><di:waypoint x="400" y="178"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f4"><di:waypoint x="425" y="153"/><di:waypoint x="425" y="100"/><di:waypoint x="500" y="100"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f5"><di:waypoint x="425" y="203"/><di:waypoint x="425" y="260"/><di:waypoint x="500" y="260"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f6"><di:waypoint x="600" y="100"/><di:waypoint x="678" y="100"/><di:waypoint x="678" y="160"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f7"><di:waypoint x="600" y="260"/><di:waypoint x="678" y="260"/><di:waypoint x="678" y="196"/></bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>