aboutsummaryrefslogtreecommitdiff
path: root/doc/flows/int-push.tex
blob: faea50f720883e402a2afc5bd09b5e632a1331fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
\section{Push payment} \label{sec:push}

\begin{figure}[h!]
  \begin{sequencediagram}
    \newinst{payer}{\shortstack{Payer \\
      \\ \begin{tikzpicture}
        \node [fill=gray!20,draw=black,thick,align=center] {Pre-funded \\ Wallet};
      \end{tikzpicture}
    }}
    \newinst[2]{exchange}{\shortstack{Taler (exchange) \\
       \\ \begin{tikzpicture}[shape aspect=.5]
        \tikzset{every node/.style={cylinder,shape border rotate=90, draw,fill=gray!25}}
        \node at (1.5,0) {\shortstack{{{\tiny Database}}}};
       \end{tikzpicture}
    }}
    \newinst[2]{payee}{\shortstack{Payee \\
      \\ \begin{tikzpicture}
        \node [fill=gray!20,draw=black,thick,align=center] { Unique \\ Wallet ID};
      \end{tikzpicture}
    }}
    \postlevel
    \begin{callself}{payer}{Review push payment fees}{}
    \end{callself}
    \mess[0]{payer}{{Push funds (Coins)}}{exchange}
    \mess[0]{payer}{{Offer payment (e.g. via QR code)}}{payee}
    \begin{callself}{payee}{Review payment offer}{}
    \end{callself}
    \mess[0]{payee}{{Request funds (Wallet ID)}}{exchange}
    \begin{sdblock}{Domestic wallet?}{}
    \begin{callself}{exchange}{Figure~\ref{fig:proc:domestic}}{}
    \end{callself}
    \end{sdblock}
    \begin{sdblock}{KYC/AML required?}{}
    \begin{callself}{exchange}{Figures~\ref{fig:proc:kyc}, \ref{fig:proc:aml}}{}
    \end{callself}
    \end{sdblock}
    \mess[0]{exchange}{{Distribute digital cash}}{payee}
%    \postlevel
    \begin{sdblock}{Payment offer expired?}{}
    \mess[0]{exchange}{{Return funds}}{payer}
    \end{sdblock}

\end{sequencediagram}
  \caption{Interactions between wallets and Taler exchange
    in a push payment. KYC/AML checks are described
    in Section~\ref{sec:kyc:push}.}
  \label{fig:int:push}
\end{figure}