aboutsummaryrefslogtreecommitdiff
path: root/articles/ui/figs/paypal.pml
blob: 2820f27423b6819b9cffb3e9a484d386eecd92f0 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# FROM: https://github.com/w3c/webpayments/tree/gh-pages/PaymentFlows

@startuml
autonumber

Participant "Payee (Merchant) Site" as Payee
Actor "Payer (Shopper) Browser" as Payer
participant "Payer (Shopper) PSP (PayPal)" as CPSP

note over MPSP, CPSP: HTTPS

title PayPal Payment (REST API) (Current)

Payee->Payer: Present Checkout Page with Pay Button

Payer->Payer: Select PayPal Payment Method

Payer-\Payee: Payment Page Request

Payee<->CPSP: Create Payment

Payee-/Payer: HTTP Redirect

Note right: HTTP Direct now send the shopper to the PayPal site

Payer-\CPSP: Payment Initiation

CPSP-/Payer: Authentication Page

Payer-\CPSP: Authenticate
note right: Typically a username & password

CPSP-/Payer: Payment Page

opt
	Payer<->CPSP: Instrument Choice
	note right: Payer can change from default payment instrument
end

Payer->Payer: Approval

Payer-\CPSP: Payment Approval

CPSP-/Payer: Payment Response Redirect

Payer-\Payee: Payment Response

Payee<->CPSP: Execute Payment

Payee-/Payer: Result Page


... asynchronous notification ...

CPSP->Payer: Payment Notification (email)

Opt
	Payee->Payer: Payment Notification (email)
End

Note right: Provides out of band confirmation to protect against failure/modification at browser


@enduml