Skip to main content

PayComplete™™ Help Center

Examples

This is a full example showing some of the possibilities of the resolver model.

XML

<resolver id="ce71ae71-423d-4298-942e-65be805c5d4c">
  <deviceId>URT.1</deviceId>
  <name>Resolver for 55B003X</name>
  <errorCode>55B003?</errorCode>
  <steps>
    <step id="0">
      <description>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
        eiusmod tempor incididunt ut labore et dolore magna aliqua. 
        Convallis convallis tellus id interdum. Phasellus egestas tellus 
        rutrum tellus pellentesque eu tincidunt tortor aliquam. Mollis 
        nunc sed id semper risus in hendrerit gravida rutrum. Elit 
        pellentesque habitant morbi tristique senectus et netus.
      </description>
      <exit next id="1" />
    </step>
    <step id="1">
      <unlock retry="Unlock" message="Unlocking {}">
        <door>SAFE-3</door>
      </unlock>
      <message>Open the safe door</message>
      <exit next="2">
        <door>
          <type>SAFE-3</type>
          <status>OPEN</status>
        </door>
      </exit>
    </step>
    <step id="2">
      <video fullscreen="true" muted="false">
        some-instructive-video.mp4
      </video>
      <exit next="3" />
    </step>
    <step id="3">
      <image fullscreen="true">some-instructive-image-1.png</image>
      <message>Do this, then do that and hit next</message>
    </step>
    <step id="4">
      <image fullscreen="true">some-instructive-image-2.png</image>
      <message>Do this, then do that and hit next</message>
    </step>
    <step id="5">
      <message>Close the safe door</message>
      <exit next="6">
        <door>
          <type>SAFE-3</type>
          <status>CLOSED</status>
        </door>
        <lock message="Locking {}">
          <door>SAFE-3</door>
        </lock>
      </exit>
    </step>
    <step id="6">
      <reset message="Resetting...">
        <deviceId>URT.1</deviceId>
      </reset>
    </step>
  </steps>
</resolver>