Skip to content

Commit b730af0

Browse files
author
hdknr
committed
interim commit to provide sample use case of a book shop and a payment OP
1 parent 0e26c92 commit b730af0

File tree

7 files changed

+446
-53
lines changed

7 files changed

+446
-53
lines changed

cx-doc/xml/cx-sample-template.rst

Lines changed: 0 additions & 45 deletions
This file was deleted.

cx-doc/xml/readme.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,3 @@ Execute the following command:
3535

3636
% trang -I xml -O xsd cx.xml cx.xsd
3737

38-

cx-doc/xml/sample_proposal.xml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
<Type>http://openid.net/srv/cx/1.0/#proposal</Type>
44
<Datetime>2009-12-15T21:10:54+09:00</Datetime>
55
<Party>
6-
<URL>http://netshop.com</URL>
6+
<URL id="proposer" >http://bourgogneonline.com</URL>
77
<Rel>http://openid.net/srv/cx/1.0/#proposer</Rel>
88
<obligations>
9-
<param type="http://cxop.net/cx/payment/totalamount" id="taotalamount">500.0</param>
10-
<param type="http://cxop.net/cx/payment/title" id="title">Python Books</param>
9+
<param type="http://payment.hdknr.com/cx/proposer_name" id="proposer_name">Bourgone Online</param>
10+
<param type="http://payment.hdknr.com/cx/price" id="price">29.90</param>
11+
<param type="http://payment.hdknr.com/cx/title" id="title">OpenID: The Definitive Guide (Paperback)</param>
12+
<param type="http://payment.hdknr.com/cx/purchase_items" id="purchase_items">
13+
ISBN-13: 978-0596153762 / Title: OpenID: The Definitive Guide (Paperback) / Unit: 1 / Price: USD29.99
14+
</param>
15+
<param type="http://payment.hdknr.com/cx/shipping" id="shipping">UPS</param>
1116
</obligations>
1217
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
1318
<SignedInfo>
@@ -42,13 +47,20 @@ uFAx2HjGzA==</X509Certificate>
4247
</KeyInfo>
4348
</Signature></Party>
4449
<Party>
45-
<URL>=hdknr</URL>
46-
<Rel>http://openid.net/srv/cx/1.0/#proposer</Rel>
50+
<URL id="acceptor" >=hdknr</URL>
51+
<Rel>http://openid.net/srv/cx/1.0/#acceptor</Rel>
52+
<obligations>
53+
<param type="http://cxop.net/cx/payment/acceptor_name" id="acceptor_name">=hdknr</param>
54+
</obligations>
55+
</Party>
56+
<Party>
57+
<URL>http://payment.hdknr.com/</URL>
58+
<Rel>http://openid.net/srv/cx/1.0/#signer</Rel>
4759
<obligations/>
4860
</Party>
4961
<Service>
50-
<Type>http://cxop.net/cx/payment#sha256:40ea725769e6221908f08675014cff1b13e8399a5eb5555c21687d487da0b66c</Type>
51-
<URL>http://cxop.net/openid/</URL>
62+
<Type>http://payment.hdknr.com/cx/template_payment_usd#sha256:40ea725769e6221908f08675014cff1b13e8399a5eb5555c21687d487da0b66c</Type>
63+
<URL>http://payment.hdknr.com/openid/</URL>
5264
</Service>
5365
<TemplateURL>http://cxop.net/cx/payment#sha256:40ea725769e6221908f08675014cff1b13e8399a5eb5555c21687d487da0b66c</TemplateURL>
5466
<Template>PT09PT09PT09PT09PT09PT09PT09PT09PT09CklOVEVSTkVUIFBBWU1NRU5UIEFHUkVFTUVOVAo9

0 commit comments

Comments
 (0)