forked from szokodiakos/node-otpbank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
3ps.txt
40 lines (31 loc) · 850 Bytes
/
3ps.txt
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
# use http://sequencediagram.org/
participant Frontend
participant Backend
participant "OTP Bank" as OTP
Frontend->Backend:POST /pay
activate Frontend
activate Backend
Backend->Backend:Prepare SOAP request
Backend->OTP:SOAP startTransaction
activate OTP
OTP-->Backend:transaction started
deactivate OTP
Backend-->Frontend:redirect URL
deactivate Backend
Frontend->OTP:redirect user to OTP
deactivate Frontend
activate OTP
OTP->OTP:User enters\ncard info
OTP-->Frontend:redirect user to Frontend with transactionID
deactivate OTP
activate Frontend
Frontend->Backend:GET /transaction\nby transactionID
activate Backend
Backend->Backend:Prepare SOAP request
Backend->OTP:SOAP getTransaction
activate OTP
OTP-->Backend:transaction details
deactivate OTP
Backend->Backend:process details
Backend-->Frontend:transaction details
deactivate Backend