summaryrefslogtreecommitdiff
path: root/doc/rfc/rfc3538.txt
blob: df6e0b7a9a8a29e7e2fc32a2e4bd26e866ef28f1 (plain) (blame)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
Network Working Group                                       Y. Kawatsura
Request for Comments: 3538                                       Hitachi
Category: Informational                                        June 2003


         Secure Electronic Transaction (SET) Supplement for the
               v1.0 Internet Open Trading Protocol (IOTP)

Status of this Memo

   This memo provides information for the Internet community.  It does
   not specify an Internet standard of any kind.  Distribution of this
   memo is unlimited.

Copyright Notice

   Copyright (C) The Internet Society (2003).  All Rights Reserved.

Abstract

   This document describes detailed Input/Output parameters for the
   Internet Open Trading Protocol (IOTP) Payment Application Programming
   Interface (API).  It also describes procedures in the Payment Bridge
   for the use of SET (SET Secure Electronic Transaction) as the payment
   protocol within Version 1.0 of the IOTP.

Table of Contents

   1. Introduction....................................................3
      1.1 Objectives of this Document.................................3
      1.2 Scope of this specification.................................3
          1.2.1 The version of IOTP specification.....................3
          1.2.2 The version of SET specification......................4
          1.2.3 The version of IOTP Architecture document.............4
      1.3 Audience....................................................4
      1.4 Notation....................................................4
      1.5 Terminology.................................................4
   2. Requirements & Development Policy...............................4
   3. Business Models.................................................5
      3.1 Entity models between SET and IOTP..........................5
      3.2 Role of Participants........................................5
      3.3 Scope of Transaction Types..................................6
      3.4 Types of transaction not in scope...........................6
   4. Architecture of SET/IOTP........................................7
   5. Trading Types of SET/IOTP.......................................7
      5.1 Baseline Purchase...........................................7
      5.2 Cash Advances...............................................8
      5.3 Status Inquiry .............................................8



Kawatsura                    Informational                      [Page 1]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   6. General Flow of SET/IOTP........................................8
      6.1 Baseline Purchase...........................................9
          6.1.1 Brand Independent Baseline Purchase...................9
          6.1.2 Brand Dependent Baseline Purchase....................13
      6.2 Cash Advances..............................................14
      6.3 Status Inquiry.............................................15
   7. IOTP Payment APIs..............................................16
      7.1 Brand Compilation Related API Calls........................16
          7.1.1 Find Accepted Payment Brand..........................16
          7.1.2 Find Accepted Payment Protocol.......................17
          7.1.3 Get Payment Initialization Data......................18
          7.1.4 Inquire Authentication Challenge.....................19
          7.1.5 Authenticate.........................................19
          7.1.6 Check Authentication Response........................19
      7.2 Brand Selection Related API Calls..........................20
          7.2.1 Find Payment Instrument..............................20
          7.2.2 Check Payment Possibility............................21
      7.3 Payment Transaction Related API Calls......................22
          7.3.1 Start Payment Consumer...............................22
          7.3.2 Start Payment Payment Handler........................23
          7.3.3 Resume Payment Consumer..............................24
          7.3.4 Continue Process.....................................25
          7.3.5. Change Process State................................26
      7.4 General Inquiry API Calls..................................26
          7.4.1 Payment Instrument Inquiry...........................26
          7.4.2 Inquire Pending Payment..............................26
          7.4.3 Remove Payment Log...................................27
      7.5 Payment Related Inquiry API Calls..........................27
          7.5.1 Check Payment Receipt................................27
          7.5.2 Expand Payment Receipt...............................27
          7.5.3 Inquire Process State................................28
          7.5.4 Start Payment Inquiry................................29
          7.5.5 Inquire Payment Status...............................30
   8. SET dependent Process..........................................30
      8.1 Relationships between them for IOTP Purchase/Cash Advances.30
      8.2 Definition of Identifiers..................................31
          8.2.1 Definition of BrandId................................31
          8.2.2 Definition of ProtocolBrandId........................31
          8.2.3 Definition of ProtocolId.............................33
          8.2.4 Relationship between Ids.............................33
      8.3 Process prior to Payment...................................34
          8.3.1 FindAcceptedPaymentProtocol Function.................34
          8.3.2 FindPaymentInstrument Function.......................35
          8.3.3 GetPaymentInitializationData Function................36
      8.4 Process of Payment.........................................37
          8.4.1 StartPaymentConsumer Function........................37
          8.4.2 StartPaymentPaymentHandler Function..................41
          8.4.3 ContinueProcess Function (Consumer Side).............42



Kawatsura                    Informational                      [Page 2]
^L
RFC 3538                SET Supplement for IOTP                June 2003


          8.4.4 ContinueProcess Function (Payment Handler Side)......43
          8.4.5 InquireProcessState Function.........................45
      8.5 Payment Receipt............................................45
          8.5.1 CheckPayReceipt Function.............................45
          8.5.2 ExpandPayReceipt Function............................45
      8.6 Status Inquiry.............................................46
      8.7 Resume Process.............................................47
      8.8 SET Scheme Specific Authentication on IOTP.................47
      8.9 SET Bridge ProcessState....................................48
          8.9.1 SET Bridge ProcessState of Consumer..................48
          8.9.2 SET Bridge ProcessState of Payment Handler...........49
      8.10 Relationship between Pay Step and Deliv Step on SET/IOTP..49
      8.11 Completion Code...........................................50
      8.12 PercentComplete...........................................50
      8.13 Severity..................................................51
   9. Error Handling.................................................51
      9.1 Types of Errors............................................51
      9.2 IOTP Level Error (OAC Error)...............................52
      9.3 IOTP Level Error (SET Bridge Error)........................52
      9.4 SET Level Error (SET Technical Error)......................52
          9.4.1 SET Initiation Error.................................52
          9.4.2 SET Transaction Error................................53
      9.5 SET Level Error (SET Business Error).......................53
   10. Security Considerations.......................................54
   11. References....................................................54
   12. IANA Considerations...........................................55
   13. Acknowledgement...............................................55
   14. Author's Address..............................................55
   15. Full Copyright Statement......................................56

1. Introduction

   This chapter describes the outline of this document.

1.1 Objectives of this Document

   This document describes how SET (SET Secure Electronic Transaction)
   works within the IOTP (Internet Open Trading Protocol).

1.2 Scope of this specification

1.2.1 The version of IOTP specification

   This document is written based on IOTP Version 1.0 [RFC 2801].







Kawatsura                    Informational                      [Page 3]
^L
RFC 3538                SET Supplement for IOTP                June 2003


1.2.2 The version of SET specification

   This document is written based on SET Version 1.0 [SET].

1.2.3 The version of IOTP Architecture document

   This document is written based on IOTP Payment API document Version
   1.0 [IOTP Payment API].

1.3 Audience

   This document is indented for readers who are familiar with the
   following documents:

   1) IOTP Specification Version 1.0 [RFC 2801]
   2) SET Specification, in particular Book 2:Programmer's Guide and
      Book3:Formal Protocol Definition,
   3) External Interface Guide to SET Secure Electronic Transaction
   4) Internet Open Trading Supplement: Architecture and Payment API
      [IOTP API]

1.4 Notation

   SET Messages and Elements are described with the prefix "SET".

   Examples:
   SET PRes
   SET OD
   SET SaleDetail

1.5 Terminology

   This document uses the following terms:

   SET/IOTP             The specification described in this document.
   SET related message  Both SET Messages and SET Initiation Messages

2. Requirements & Development Policy

   This chapter describes the requirements and development policies of
   SET/IOTP.

   The requirements of SET/IOTP are as follows:

   o  To be based on SET specifications.  Interoperability at the
      payment level must be maintained.





Kawatsura                    Informational                      [Page 4]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   o  To not enforce modifications which are specific to SET/IOTP.
      General features of IOTP should not be tampered with to cater to a
      particular payment method.

   o  To keep integrity between IOTP and SET.  Inconstancy must not be
      raised between IOTP and SET elements when they have the same
      meaning.

   The development policy of SET/IOTP is as follows:

   o  To minimize the number of message round trips

   o  To minimize the length of messages

3. Business Models

   This chapter describes the difference in entity models between SET
   and IOTP, the definitions of Trading Roles in SET/IOTP, and the scope
   of SET/IOTP.

3.1 Entity models between SET and IOTP

   The following table describes how SET and IOTP entities correspond to
   each other.

   |    IOTP Entity                SET Entity         |
   | ------------------------------------------------ |
   | Consumer        <--->      Card Holder           |
   | Merchant        <--->      Merchant (Initiation) |
   | Payment Handler <--->      Merchant (Payment)    |
   | Delivery Handler<--->      None                  |
   | None            <--->      Acquirer              |

      Figure 1 Entity Models between SET and IOTP

3.2 Role of Participants

   The following table describes the trading roles in SET/IOTP.

   Trading Roles        Role
   -------------------------------------------------------------
   Consumer             An Individual who purchases goods and/or
                        services, and pays for the value received
                        by choosing a SET Transaction.  This
                        individual corresponds with the
                        CardHolder in SET.





Kawatsura                    Informational                      [Page 5]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   Merchant             An organization that provides goods and/or
                        services for purchase, accepts payment
                        methods, delivers invoices and triggers
                        payment processes.

   Payment Handler      An organization that processes negotiations on
                        payments including SET payment transactions.

   Delivery Handler     An Organization that ships digital or physical
                        goods to the Consumer.

   Customer Care        The same as in [RFC 2801].
   Provider

   Merchant Care        The same as in [RFC 2801].
   Provider

3.3 Scope of Transaction Types

   The types of IOTP transactions that are supported in this document
   are as follows:

   o  Brand Independent Baseline Purchase when SET is used for payment

   o  Brand Dependent Baseline Purchase when SET is used for payment

   o  Cash Advances (Brand Independent and Brand Dependent case)

   o  Status Inquiry on SET payments

3.4 Types of transaction not in scope

   The types of transactions that are NOT covered in this document are
   as follows:

   o  Credit Reversal Process

   o  Customer Care Service with Consumer Related SET Certificate
      Registration

   o  Customer Care Service with Consumer Related SET Certificate
      Registration Inquiry









Kawatsura                    Informational                      [Page 6]
^L
RFC 3538                SET Supplement for IOTP                June 2003


4. Architecture of SET/IOTP

   SET/IOTP Architecture is as follows:

   IOTP client (Consumer)  <--------------->  IOTP server (Merchant)
         ^                     Internet             ^
         | IOTP Payment                             | IOTP Payment
         |    API                                   |    API
         v                                          v
   IOTP/Payment Bridge                        IOTP/Payment Bridge
        ^                                           ^
        | Existing Payment APIs, e.g.,              |
        | SET, Mondex, etc.                         |
        v                                           v
   Existing Payment Software               Existing Payment Software

      Figure 2 SET/IOTP Architecture

   IOTP Application Core (OAC): Software that processes IOTP messages.
   IOTP Payment Bridge (OPB): Interface between OAC and Existing Payment
   Software.  SET Bridge is also an interface between OAC and SET Core.

   Existing Payment Software (EPS): Existing Software that processes
   Payments.  The SET Core is software that supports mechanisms in SET
   specification from Book1 to Book3.  EPS does NOT necessarily have to
   implement the SET Initiation Processor, which is specified in SET
   EIG.  SET Related Module Both SET related OPB and EPS.

5. Trading Types of SET/IOTP

   This chapter describes the outline of SET/IOTP trading types.

5.1 Baseline Purchase

   Three steps will take place in a Baseline Purchase in the following
   order:

   (1) Offer Step

   Consumer selects goods/services over the Internet, for instance on
   the web, and then chooses the payment method (SET is selected), the
   SET brand, the payment currency, and then confirms the invoice.

   There are two Offer Process types, Brand Independent and Brand
   Dependent.






Kawatsura                    Informational                      [Page 7]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (1-a) Brand Independent Purchase

   In a Brand Independent Purchase, the Merchant sends the TPO Block and
   Offer Response Block simultaneously after the consumer's purchase
   decision.  The Brand Independent Purchase has the merit of
   eliminating one round of messages compared with the Brand Dependent
   Purchase because the contents of the Offer Response Block (for
   example, the description on the invoice) do not change based on the
   selected brand.

   (1-b) Brand Dependent Purchase

   Brand Dependent Purchase is used when the contents of the Offer
   Response Block are dependent on the selected Payment Brand.  With
   this method, the currency selection and discounts based on payment
   method can be implemented.

   (2) Payment Step

   The Consumer confirms the order and then pays for the order with a
   SET Transaction.  The SET Transaction messages will be encapsulated
   in IOTP Messages.

   (3) Delivery Step

   After completing the Payment, the Consumer receives the
   goods/services via either on-line or physical delivery.

5.2 Cash Advances

   Cash Advances can be made via a Value Exchange Transaction in IOTP. A
   first Payment by SET and a second Payment by some other payment
   mechanism is supported in Baseline IOTP.  The Cash Advance has two
   types - Brand Independent and Brand Dependent Cases.

5.3 Status Inquiry

   A Consumer can send a SET Payment Inquiry in IOTP.  The SET Message
   is encapsulated in an IOTP Message.

6. General Flow of SET/IOTP

   This chapter illustrates the general SET/IOTP message flows.








Kawatsura                    Informational                      [Page 8]
^L
RFC 3538                SET Supplement for IOTP                June 2003


6.1 Baseline Purchase

   Baseline purchases consist of two types, Brand Independent Purchase
   and Brand Dependent Purchase.  Each type is illustrated in the charts
   below.

6.1.1 Brand Independent Baseline Purchase

   The general flow of a Brand Independent Purchase is as follows:

   (1) Consumer Side (Before PayRequest Message)

   SET Core     SET Bridge       OAC
      |             |             |  TPO & OfferResp message
      |             |             |<------------------- From
      |             |<------------|                       Merchant
      |             | FindPayment |
      |             |   Instrument|
      |             |------------>|
      |             |  Response   |
      |             |<------------|
      |             | CheckPayment|
      |             |  Possibility|
      |             |------------>|
      |             |  Response   |
      |             |<------------|
      |<------------| StartPayment|
      |------------>|     Consumer|
      |             |------------>| PayRequest Message
      |             |  Response   |-------------------> To Payment
                                    (SET Init Resp/        Handler
                                         SET PInitReq)

      Figure 3 Consumer Side for Brand Independent (1)

















Kawatsura                    Informational                      [Page 9]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (2) Consumer Side (After PayRequest Message)

   SET Core     SET Bridge       OAC
      |             |             |  Pay Exch Message
      |             |             |<------------------- From
      | SET PInitRes|<------------|  (SET PInitRes)      P.H.
      |<------------| Continue    |
      |------------>|     Process |
      |  SET PReq   |------------>|  Pay Exch Message
      |             |  Response   |-------------------> To P.H.
      |             |             |    (SET PReq)
      |             |             |  Pay Exch Message
      |             |             |<------------------  From P.H.
      |  SET PRes   |<------------|    (SET PRes)
      |<------------| Continue    |
      |------------>|    Process  |
      |             |------------>|
      |             |Response[END]|
      |             |<------------|
      |             | CheckPayment|
      |             |     Receipt |
      |             |------------>|
      |             |  Response   |
      |             |<------------|
      |             |ExpandPayment|
      |             |     Receipt |
      |             |------------>|
      |             |  Response   |
      |             |<------------|
      |             |ChangeProcess|
      |             |       State |
      |             |------------>|
      |             |  Response   |

      Figure 4 Consumer Side flow for Brand Independent (2)
















Kawatsura                    Informational                     [Page 10]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (3) Merchant Side

                                 OAC        SET Bridge
                                  |--------------->|
                                  |FindAccepted    |
                                  | PaymentBrand   |
                                  |<---------------|
                                  |  Response      |
                                  |--------------->|
                                  |FindAccepted    |
                                  | PaymentProtocol|
                                  |<---------------|
                                  |  Response      |
                                  |--------------->|
                                  |GetPaymentInit- |
                                  | lizationData   |
          TPO & Offer Resp Msg.   |<---------------|
         <------------------------|  Response      |
   To  Consumer

      Figure 5 Merchant Side flow for Brand Independent






























Kawatsura                    Informational                     [Page 11]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (4) Payment Handler Side.

                                 OAC        SET Bridge        SET Core
              PayRequest Message  |                |             |
   From    ---------------------->|                |             |
    Consumer  (SET Init Res/      |--------------->|             |
                    SET PInitReq) |StartPayment    |------------>|
                                  | PaymentHandler |<------------|
             PayExch Message      |<---------------|             |
   To      <----------------------|  Response      |             |
    Consumer (SET Init Req/       .                .             .
                   SET PInitRes)  .                .             .
             PayExch Mssage       |                |             |
           ---------------------->|                |             |
   From Consumer (SET PReq)       |--------------->| SET PReq    |
                                  | Continue       |------------>|
                                  |       Process  |<------------|
                                  |<---------------| SET PRes    |
                                  |  Response      |             |
                                  |--------------->|             |
                                  | Inquire        |             |
                                  |   ProcessState |             |
                                  |<---------------|             |
                                  |  Response      |             |
                                  |--------------->|             |
                                  | ChangeProcess  |             |
                                  |      State     |             |
           PayResponse Message    |<---------------|             |
         <------------------------|  Response      |             |
   To  Consumer (SET PRes)

      Figure 6 Payment Handler side flow for Brand Independent



















Kawatsura                    Informational                     [Page 12]
^L
RFC 3538                SET Supplement for IOTP                June 2003


6.1.2 Brand Dependent Baseline Purchase

   The general flow of a Brand Dependent Purchase is as follows:

   (1) Consumer Side (Before PayRequest Message)

   SET Core     SET Bridge       OAC
      |             |             |  TPO message
      |             |             |<------------------- From
      |             |<------------|                       Merchant
      |             | FindPayment |
      |             |   Instrument|
      |             |------------>|
      |             |  Response   |
      |             |<------------|
      |             | CheckPayment|
      |             |  Possibility|
      |             |------------>|  TPO Selection Msg.
      |             |  Response   |-------------------> To Merchant
      |             |             |<------------------  From Merchant
      |             |<------------| Offer Response Msg.
      |<------------| StartPayment|
      |------------>|     Consumer|
      |             |------------>| PayRequest Message
      |             |  Response   |-------------------> To Payment
                                    (SET Init Resp/        Handler
                                         SET PInitReq)

      Figure 7 Consumer Side flow for Brand Dependent (1)

   (2) Consumer Side (After PayRequest Message)

   This flow is the same as Brand Independent.


















Kawatsura                    Informational                     [Page 13]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (3) Merchant Side

                                 OAC        SET Bridge
                                  |--------------->|
                                  |FindAccepted    |
                                  | PaymentBrand   |
                                  |<---------------|
                                  |  Response      |
                                  |--------------->|
                                  |FindAccepted    |
                                  | PaymentProtocol|
          TPO  Message            |<---------------|
         <------------------------|  Response      |
   To Consumer                    |                |
          TPO Selection Message   |                |
         ------------------------>|                |
   From Consumer                  |--------------->|
                                  |GetPaymentInit- |
                                  | lizationData   |
          Offer Response Message  |<---------------|
         <------------------------|  Response      |
   To  Consumer

      Figure 8 Merchant Side flow for Brand Dependent (1)

   (4) Payment Handler Side

   This flow is the same as Brand Independent.

6.2 Cash Advances

   IOTP Cash Advances processes can be made with a credit card using an
   IOTP Value Exchange Transaction.  In Cash Advances a first Payment by
   a SET Transaction, and a second Payment by some other payment
   mechanism, is supported in Baseline IOTP.  The general flow is
   omitted.















Kawatsura                    Informational                     [Page 14]
^L
RFC 3538                SET Supplement for IOTP                June 2003


6.3 Status Inquiry

   The general flow of a Status Inquiry is as follows:

   (1) Consumer Side

   SET Core     SET Bridge       OAC
      |             |             |
      |             |             |
      |             |<------------|
      |<------------| StartPayment|
      |------------>|      Inquiry|
      | SET InqReq  |------------>| Inquiry Request
      |             |  Response   |-------------------> To P.H.
      |             |             |   (SET InqReq)
      |             |             |
      |             |             | Inquiry Response
      |             |             |<------------------- From P.H.
      |             |             |   (SET InqRes)
      | SET Inq Res |<------------|
      |<------------| Continue    |
      |------------>|      Process|
      | SET InqReq  |------------>|
      |             |    [End]    |
      |             |ChangeProcess|
      |             |        State|
      |             |<------------|
      |<------------|

      Figure 9 Consumer Side flow for Status Inquiry

   (2) Payment Handler Side

                                   OAC        SET Bridge     SET Core
              InquiryReq message    |              |             |
   From    ------------------------>|              |             |
    Consumer     (SET InqReq)       |------------->|             |
                                    |InquirePayment|------------>|
                                    |        Status| SET InqReq  |
                                    |              |<------------|
                                    |              | SET InqRes  |
              InquiryResp message   |<-------------|             |
   To      <------------------------|  Response    |             |
    Consumer     (SET InqRes)       |

      Figure 10 Payment Handler Side flow for Status Inquiry





Kawatsura                    Informational                     [Page 15]
^L
RFC 3538                SET Supplement for IOTP                June 2003


7. IOTP Payment APIs

   This section provides a summary of SET/IOTP interactions with API
   calls as in [IOTP Payment API].

   The description of parameters hereafter are written as follows:

      Parameter name : Mandatory (M) or Optional (O) : Description

   For more details on the IOTP Payment APIs, see [IOTP Payment API].
   "-" in the Description is the same as description in the [IOTP
   Payment API].

   Notice: Status is the status of SET/IOTP.  Though some Fields are
   specified "#IMPLIED" in [IOTP Payment API], if the fields must be
   used in SET/IOTP, this document specifies the status as Mandatory,
   (M).

7.1 Brand Compilation Related API Calls

7.1.1 Find Accepted Payment Brand

   Receive the payment scheme specific packaged data to generate Brand
   Component.  In this version of SET/IOTP, This API must be called
   before Find Accepted Payment Protocol function.

   Input Parameters
   ----------------
   PayDirection       : M : This must be set "Debit".
   CurrCodeType       : M : This should be set "ISO4217-A".
   CurrCode           : M : -
   Amount             : M : -
   MerchantPayId      : M : -
   MerchantOrgId      : M : -
   WalletId           : O : -
   MerchantData       : O : The details are not specified in
                            this document.
   Output Parameters
   -----------------
   BrandItem          : M : See NOTE below.











Kawatsura                    Informational                     [Page 16]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   NOTE: Parameters of BrandItem
   -----------------------------
   BrandId            : M : This is defined in the section 8.2.1.
   xml:lang           : M : -
   BrandName          : M : Brand Name, such as "MasterCard".
   BrandLogoNetLocn   : M : -
   BrandNarrative     : O : This is not specified in this document.
   BrandPackaged      : O : This is not used in the SET/IOTP.
    Content

7.1.2 Find Accepted Payment Protocol

   Receive the payment scheme specific packaged data to generate the
   PayProtocol Component.

   Input Parameters
   ----------------
   BrandId            : M : This is defined in the section 8.2.1.
   PayDirection       : M : This must be set "Debit".
   CurrCodeType       : M : This should be set "ISO4217-A".
   CurrCode           : M : -
   Amount             : M : -
   MerhcantPayId      : M : -
   MercahntOrgId      : M : -
   WalletId           : O : -
   BrandPackaged      : O : This is not used in the SET/IOTP.
    Content
   MerchantData       : O : This is not specified in the SET/IOTP.

   Output Parameters
   -----------------
   ProtocolItem       : M : See NOTE below.
   BrandItem          : M : -

   NOTE Parameters of ProtocolItem
   -------------------------------
   ProtocolId         : M : This is set "SETv1.0".
   ProtocolBrandId    : M : This is set the Payment Protocol Specific
                            ID corresponding to the BrandId as Input
                            Parameter and ProtocolId as the
                            Output Parameter.  For the detail,
                             see 8.2.2.
   xml:lang           : M : -
   ProtocolName       : M : This is not specified in this document
                            but must be included the protocol name
                            and its version at least.





Kawatsura                    Informational                     [Page 17]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   PayReqNetLocn      : O : The Net Location indicating where a
                            unsecured Payment Request Message should
                            be sent if this protocol choice is used.
   SecPayReqNetLocn   : O : The Net Location indicating where
                            a secured Payment Request Message
                            should be sent if this protocol choice
                            is used.
   ProtocolAmount     : O : This is not used in the SET/IOTP.
    PackagedContent
   PayProtocol        : M : The XML Packaged Data, which includes
    PackagedContent         the information for the 1st SET
                            Initiation Process.  See for the details
                            to section 8.3.1.
   Brand              : M : In this document, BrandId, which is the
                            same as Input Parameter,must be set ONLY.
                            See NOTE below.
   CurrencyAmount     : M : See NOTE below.
   ProtocolBrand      : M : Multiple Components are not arrowed in
                            the current version of SET/IOTP.

   Note Parameters of CurrencyAmount
   ---------------------------------
   CurrCodeType       : M : This should be set "ISO4217-A".
   CurrCode           : M : -
   Amount             : M : -

   Note Parameters of Brand
   ------------------------
   BrandId            : M : -

7.1.3 Get Payment Initialization Data

   This API is used to get the packaged content in Payment Component.

   Input Parameters
   ----------------
   BrandId            : M : See the details of section 8.2.1.
   MerchantPayId      : M : -
   PayDirection       : M : This is set "Debit".
   CurrCodeType       : M : This is set "ISO5217-A".
   CurrCode           : M : -
   Amount             : M : -
   OkFrom             : M : -
   OkTo               : M : -
   ReceiverOrgId      : M : Organization ID which is used to get
                            TradingRolePackagedContents, which
                            depend on the organizations for each.
   MerchantOrgId      : M : -



Kawatsura                    Informational                     [Page 18]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   ProtocolId         : M : This field must be set "SETv1.0".
   WalletId           : O : -
   PassPhrase         : O : -
   ProtocolBrand      : M : -
   BrandPackaged      : O : This is not used in the current version
    Content                 of SET/IOTP.
   ProtocolAmount     : O : This is not used in the current version
    PackagedContent         of SET/IOTP.
   PayProtocolPackaged: M : This field is copied from the
    Content                 PayProtocol Component.
   OrderPackaged      : M : Packaged Data regarding the Order data,
    Content                 which the Merchant's OAC sets.
   BrandSelBrandInfo  : O : This is not used in the current
    PackagedContent         version of SET/IOTP.
   BrandSelProtocol   : O : This is not used in the
    AmountInfoPackaged      current version of SET/IOTP.
    Content
   BrandSelCurrency   : O : This is not used in the
    AmountInfo              current version of SET/IOTP.
    PackagedContent

   Output Parameters
   -----------------
   OkFrom             : M : -
   OkTo               : M : -
   OrderPackaged      : M :Changed OrderPackagedContent if
    Content                it rewrites the order information.
                           Otherwise, passed the same input
                           data to OAC.
   TradingRole       : O : The receiver depended
    PackagedContent        TradingRolePackagedContent.  The Name
                           Attribute of the packaged contents
                           must include "Payment:" as the prefix,
                           for example "Payment:SET-OD".  Multiple
                           TradingRoleData may be returned.

7.1.4 Inquire Authentication Challenge

   This is not used in the current version of SET/IOTP.

7.1.5 Authenticate

   This is not used in the current version of SET/IOTP.

7.1.6 Check Authentication Response

   This is not used in the current version of SET/IOTP.




Kawatsura                    Informational                     [Page 19]
^L
RFC 3538                SET Supplement for IOTP                June 2003


7.2 Brand Selection Related API Calls

7.2.1 Find Payment Instrument

   This API is used to get the Payment Instruments that can be accepted
   by the Payment Handler on behalf of the Merchant.

   Input Parameters
   ----------------
   BrandId            : M : See the details of section 8.2.2.
   ProtocolId         : M : This must be set "SETv1.0".
   PayDirection       : M : This must be set "Debit".
   CurrCodeType       : M : This should be set "ISO5217-A".
   CurrCode           : M : -
   Amount             : M : -
   ConsumerPayId      : M : -
   WalletId           : O : -
   ProtocolBrand      : M : -
   BrandPackaged      : O : This is not used in the current
    Content                 version of SET/IOTP.
   ProtocolAmount     : O : This is not used in the current
    PackagedContent         version of SET/IOTP.
   PayProtocolPackaged: M : See details for section 8.3.1.
    Content

   Output Parameters
   -----------------
   PayInstrument      : M : Multiple PayInstrument Ids may
                            be returned. See NOTE below.

   NOTE Parameters of PayInstrument
   --------------------------------
   Id                 : M : This must be unique each SET
                            Certificates which the
                            Consumer can use.
   xml:lang           : M : -
   PayInstName        : M : -














Kawatsura                    Informational                     [Page 20]
^L
RFC 3538                SET Supplement for IOTP                June 2003


7.2.2 Check Payment Possibility

   If the SET Bridge receives this API Message, the SET Bridge returns
   three packaged content fields.

   Input Parameters
   ----------------
   BrandId            : M : This is set the consumer selected
                            BrandId.
   PaymentInstrumentId: M : This is set the consumer selected
                            PaymentInstrumentID.
   PayDirection       : M : This is set "Debit".
   CurrCodeType       : M : This is set "ISO4217-A".
   CurrCode           : M : -
   Amount             : M : -
   ProtocolId         : M : This must be set "SETv1.0".
   WalletId           : O : -
   Passphrase         : O : -
   ConsumerPayId      : M : -
   ProtocolBrand      : M : This is set the consumer selected
                            ProtocolBrand Component.
   BrandPackaged      : O : This is not used in the current
    Content                 version of SET/IOTP.
   ProtocolAmount     : O : This is not used in the current
    PackagedContent         version of SET/IOTP.
   PayProtocol        : M : This field is copied from the PayProtocol
   PackagedContent          Component

   Output Parameter
   ---------------
   BrandSelBrandInfo  : O : This is not used in the current
   PackagedContent          version of SET/IOTP.
   BrandSelProtocol   : O : This is not used in the
    AmountInfoPackaged      current version of SET/IOTP.
    Content

   BrandSelCurrency   : O : This is not used in the
    AmountInfoPackaged         current version of SET/IOTP.
    Content












Kawatsura                    Informational                     [Page 21]
^L
RFC 3538                SET Supplement for IOTP                June 2003


7.3 Payment Transaction Related API Calls

7.3.1 Start Payment Consumer

   In SET/IOTP, this API is used for the Consumer's SET Bridge to
   process the 1st SET Initiation and any subsequent SET messages.

   Input Parameters
   ----------------
   BrandId            : M : ID for the consumer selected
                            Brand.  See the details of
                            section 8.2.1.
   PaymentInstrumentId: M : ID for the consumer selected
                            Instrument.
   CurrCodeType       : M : The consumer selected CurrCodeType.
   CurrCode           : M : The consumer selected CurrCode.
   Amount             : M : The consumer selected Amount.
   PayDirection       : M : Indicates the payment direction
                            from the Consumer's prospective.
   ProtocolId         : M : The consumer selected ProtocolId.
   OkFrom             : M : -
   OkTo               : M : -
   ConsumerPayId      : M : -
   WalletID           : O : -
   Passphrase         : O : -
   CallBackFunction   : O : This is not used in the SET/IOTP.
   CallBackLanguage   : O : This is not used in the SET/IOTP.
    List
   ProtocolBrand      : M : ID for the consumer selected
                            Protocol dependent Brand information.
   BrandPackaged      : O : This is not used in the current
    Content                 version of SET/IOTP.
   ProtocolAmount     : O : This is not used in the current
    PackagedContent         version of SET/IOTP.
   PayProtocolPackaged   : M : See section 8.2.2.
    Content

   Output Parameters
   -----------------
   ContStatus         : M : "Continue" must be set if there is
                            in no problem
   PaySchemePackaged  : M : See section 6.5.1.
    Content








Kawatsura                    Informational                     [Page 22]
^L
RFC 3538                SET Supplement for IOTP                June 2003


7.3.2 Start Payment Payment Handler

   This API is used to initiate a payment on the Payment Handler's side.
   The SET Related Module does a payment initialization.  The SET
   Related Module processes SET Message received and returns the
   appropriate SET Message (e.g., 2nd SET Initiation or SET PinitRes
   message).

   Input Parameters
   ----------------
   BrandId            : M : ID for the consumer selected Brand.
                            See the details of section 8.2.1.
   ConsumerPayId      : O : ID for the consumer generated payment
                             transaction.
   CurrCodeType       : M : The consumer selected CurrCodeType.
                            This should be set "ISO4217-A".
   CurrCode           : M : The consumer selected CurrCode.
   Amount             : M : The consumer selected Amount.
   PayDirection       : M : This is set "Debit".
   ProtocolId         : M : The consumer selected ProtocolId.
                            This must be set "SETv1.0".
   OkFrom:            : M : -
   OkTo               : M : -
   PaymentHandlerPayId: M : -
   MerchantOrgId      : M : -
   WalletID           : O : -
   Passphrase         : O : -
   CallBackFunction   : O : This is not used in the SET/IOTP.
   CallBackLanguage   : O : This is not used in the SET/IOTP.
    List
   BrandPackaged      : O : This is not used in the current
   Content                  version of SET/IOTP.
   ProtocolAmountP    : O : This is not used in the current
    PackagedContent         version of SET/IOTP.
   PayProtocolPackaged: M : -
    Content
   ProtocolBrand      : M : Information for the consumer selected
                            Protocol dependent Brand.
   BrandSelBrandInfo  : O : This is not used in the current
    PackagedContent         version of SET/IOTP.
   BrandSelProtocol   : O : This is not used in the
    AmountInfo              current version of SET/IOTP.
    PackagedContent
   BrandSelCurrency   : O : This is not used in the
    AmountInfo              current version of SET/IOTP.
    PackagedContent





Kawatsura                    Informational                     [Page 23]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   TradingRolePackaged: O : Copied from the TradingRoleData
    Content                 Component.  The Name Attribute of
                            the packaged contents must include
                            "Payment:" as the prefix,
                            for example "Payment:SET-OD".
   PaySchemePackaged  : M : See section 6.5.2.
    Content

   Output Parameters
   -----------------
   PaySchemePackaged  : M : See section 6.5.2.
    Content
   ContStatus         : M : "Continue" must be set if there
                             is no problem.

7.3.3 Resume Payment Consumer

   This API is used to restart a payment transaction when the
   transaction is suspended for some reason such as a time out.  The
   last SET Message relevant to this suspended transaction is returned
   as the Response.

   Input Parameters
   ----------------
   ConsumerPayId     : M : -
   WalletId          : O : -
   PassPhrase        : O : -
   CallBackFunction  : O : This is not used in the current version
                           of SET/IOTP.
   CallBack          : O : This is not used in the current version
    LanguageList           of SET/IOTP.

   Output Parameters
   -----------------
   ContStatus        : M : -
   PaySchamePackaged : M : See section 8.7.
    Content














Kawatsura                    Informational                     [Page 24]
^L
RFC 3538                SET Supplement for IOTP                June 2003


7.3.4 Continue Process

   This API is used to pass a SET related message, received from the
   counter party, to the SET Bridge, and accept the next SET message as
   a response.

   (1) Consumer Side Payment Bridge

   Input Parameters
   ----------------
   PayId              : M : Set ConsumerPayId
   WalletId           : O : -
   PassPhrase         : O : -
   PaySchemePackaged  : M : See section 8.4.3.
    Content

   Output Parameters
   -----------------
   ContStatus         : M : Set "End" if SET PRes message is
                            received in the PaySchemePackagedContent
                            as the input parameter, otherwise set
                            "Continue".
   PaySchemePackaged  : O : If ContStatus is set "End", this is not
    Content                 used.  See 8.4.3.

   (2) Payment Handler Side Payment Bridge

   Input Parameters
   ----------------
   PayId              : M : Set PaymentHandlerPayId
   WalletId           : O : -
   PassPhrase         : O : -
   PaySchemePackaged  : M : See section 8.4.4.
    Content

   Output Parameters
   -----------------
   ContStatus         : M : Set "End" if SET PRes message is
                            received in the
                            PaySchemePackagedContent as the
                            output parameter, otherwise set
                            "Continue".
   PaySchemePackaged  : M : See section 8.4.4.
    Content







Kawatsura                    Informational                     [Page 25]
^L
RFC 3538                SET Supplement for IOTP                June 2003


7.3.5. Change Process State

   This API is used by the OAC to change the Process State of the OPB.
   For instance, it is used to change the Payment Status after a SET
   Payment Transaction was completed.  When an error or suspend happens,
   this API is also used.

   (1) Consumer Side Payment Bridge

   Input Parameters
   ----------------
   PayId              : M : Set ConsumerPayId
   ProcessState       : M : -
   CompletionCode     : M : -
   ProcessType        : M : -
   WalletID           : O : -
   PassPhrase         : O : -

   Output Parameters
   -----------------
   ProcessState      : M : -
   CompletionCode    : M : -
   PercentComplete   : O : See section 8.13.
   xml:lang          : O : -
   StatusDesc        : O : This field is not specified in SET/IOTP.

7.4 General Inquiry API Calls

7.4.1 Payment Instrument Inquiry

   This API is not used in the current version of SET/IOTP.

7.4.2 Inquire Pending Payment

   This API is used to check whether the payment Bridge or its wallet is
   currently in use, or not.

   Input Parameters
   ----------------
   WalletID           : O : -

   Output Parameters
   -----------------
   PayId              : M : -







Kawatsura                    Informational                     [Page 26]
^L
RFC 3538                SET Supplement for IOTP                June 2003


7.4.3 Remove Payment Log

   This API is used both Consumer and Payment Handler.

   Input Parameters
   ----------------
   PayId              : M : -
   WallerId           : O : -
   Passphrase         : O : -

   There is no output parameters.

7.5 Payment Related Inquiry API Calls

7.5.1 Check Payment Receipt

   This API is used to check a Payment Receipt.  However since the
   current SET specification does not support Receipts, SET/IOTP sends
   its own visual information of a Receipt to the SET Bridge.

   Input Parameters
   ----------------
   PayId              : M : -
   WalletId           : O : -
   PassPhrase         : O : -
   PaySchemePackaged  : M : See section 8.5.1.
    Content

   Output Parameters
   -----------------
   There is no output Parameter.

7.5.2 Expand Payment Receipt

   This expands an IOTP Payment Receipt Component packaged data into a
   form which may be used for display or printing purposes.

   Input Parameters
   ----------------
   PayId              : M : -
   WalletId           : O : -
   PassPhrase         : O : -
   PackagedContent    : M : See section 8.5.2.








Kawatsura                    Informational                     [Page 27]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   Output Parameters
   -----------------
   BrandId            : M : -
   ProtocolBrandId    : M : -
   PayInstrumentId    : M : -
   PaySchemePayId     : M : LID_M in the SET PRes message is
                            set.  (The format of this value must
                            be same as SET Initiation.)
   Amount             : M : Amount * AuthRatio (or CapRatio if
                            available).  CapRatio should be the
                            high priority than AuthRatio.
   CurrCodeType       : M : -
   CurrCode           : M : -
   PayDirection       : M : -
   ProtocolId         : M : -
   ProtocolTransId    : O : -
   TimeStamp          : M : This value should be used the
                            Date field of MessageWrapper in the
                            SET PRes message
   xml:lang           : O : This is not used in the SET/IOTP.
   ConsumerDesc       : O : This is not used in the SET/IOTP.

   PaymentHandlerDesc : O : This is not used in the SET/IOTP.
   StyleNetLocn       : O : This is not used in the SET/IOTP.
   PaymentProperty    : O : This is not used in the SET/IOTP.

7.5.3 Inquire Process State

   This API is used to check the payment status.  For example, when the
   OAC receives a Continue Payment Response API, it uses this API if the
   ContStatus is set to "End".  This API can be used at anytime.

   (1) Consumer Payment Bridge

   Input Parameters
   ----------------
   PayId              : M : Set ConsumerPayId
   WalletId           : O : -
   PassPhrase         : O : -












Kawatsura                    Informational                     [Page 28]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   Output Parameters
   -----------------
   ProcessState       : M : -
   PercentComplete    : O : See 8.13 for the guideline of
                            setting value.
   CompletionCode      : O : See section 8.12.
   xml:lang           : O : -
   StatusDesc         : O : -
   PayReceiptNameRefs : O : This is not used in the SET/IOTP.
   PayReceiptPackConts: O : This is not used in the SET/IOTP.

   (2) Payment Handler Payment Bridge

   Input Parameters
   ----------------
   PayId              : M : Set PaymentHandlerPayId
   WalletId           : O : -
   PassPhrase         : O : -

   Output Parameters
   -----------------
   ProcessState       : M : -
   PercentComplete    : O : See section 8.13 for the guideline
                            of setting value.
   CompletionCode      : O : See section 8.12.
   xml:lang           : O : -
   StatusDesc         : O : -
   PayReceiptNameRefs : O : This is set "PRes".
   PayReceiptPackConts: O : This is not used in the SET/IOTP.

7.5.4 Start Payment Inquiry

   This API call returns the SET InqReq Message in order to process a
   SET Inquiry.

   Input Parameters
   ----------------
   ConsumerPayId      : M : -
   WalletId           : O : -
   Passphrase         : O : -

   Output Parameters
   -----------------
   PaySchemePackaged  : M:  Packaged Data to include SET
    Content                 InqReq message.  See section 8.6.






Kawatsura                    Informational                     [Page 29]
^L
RFC 3538                SET Supplement for IOTP                June 2003


7.5.5 Inquire Payment Status

   The Payment Handler uses this API request for Consumer initiated
   inquiry processing.  In SET/IOTP, the Payment Handler's SET Bridge
   receives a SET InqReq message in an InquirePaymentDetail API.  The
   SET Core processes it, and creates a SET InqRes message.  The
   response encapsulates the SET InqRes message.

   Input Parameters
   ----------------
   PaymentHandlerPayId: M : -
   WalletID           : O : -
   PassPhrase         : O : -
   PaySchemePackaged  : M : See section 8.6.
    Content

   Output Parameters
   -----------------
   PaymentHandlerPayId: M : -
   ProcessState       : M : -
   CompletionCode     : O : -
   xml:lang           : O : -
   StatusDesc         : O : -
   PaySchamePackaged  : M : See section 8.6.
    Content

8. SET dependent Process

   This chapter describes the core concepts for the development of
   SET/IOTP.

8.1 Relationships between them for IOTP Purchase/Cash Advances

   This document describes SET Initiation Messages based on the [SET
   EIG].  Merchant sends the 1st SET Initiation Message to the Consumer
   in order to activate a SET payment transaction.  After this message,
   the other SET Initiation Messages (JPO, etc.) and the SET payment
   Transaction (SET PinitReq message, etc.) are exchanged between the
   Consumer and the Payment Handler.












Kawatsura                    Informational                     [Page 30]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   +------------+                 +----------+
   |            |                 |          |
   |            |<----------------| Merchant |
   |            | 1st SET InitMsg |          |
   |            |                 +----------+
   |  Consumer  |                 +----------+
   |            |                 |          |
   |            |<--------------->|   P.H.   |
   |            | Other SET Init/ |          |
   +------------+ SET Message     +----------+

      Figure 11 Relationship between IOTP Messages and SET Messages

   When the Merchant sends any data (e.g., SET SaleDetail) except a SET
   Related messages (e.g., SET PinitRes message), it can send it by two
   different methods:

   (a) The Merchant sends the data via the Consumer.
   (b) The Merchant sends the data out-of-band.

   In case (a), the Merchant sends the data by encapsulating it into
   TradingRoleData.PackagedContent inside the Offer Response Block sent
   to Consumer.  The data is copied to the Payment Request Block and
   sent to the Payment Handler.  This case assumes that the format of
   the data is already agreed upon between the Merchant and the Payment
   Handler.

   This document does not specify case (b).

8.2 Definition of Identifiers

8.2.1 Definition of BrandId

   BrandId should be used registered identification for IANA.  Now, the
   following BrandIds have registered:

   Amex, Dankort, JCB, Maestro, MasterCard, MICOS, VISA, atCredits,
   EZpay, GeldKarte, Mondex, paybox

8.2.2 Definition of ProtocolBrandId

   ProtocolBrandID is defined as follows:

   <Premise> SET BrandID is defined as brand[:Product]. ([] is indicated
   as optional.)  In SET, The brandID is a brand name, which corresponds
   to the brand of the payment card.  Additionally the Product is a
   product name, which is defined as the type of product within the
   specific brand such as Gold Card.



Kawatsura                    Informational                     [Page 31]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   Set IOTP ProtocolBrandId as follows:

      brand:Product:PCN

   In here,

   o  The brand above is the same as the sub data of SET BrandID, as
      Brand Name (brand), defined in SET.
   o  Product above is the same as the sub data of SET BrandID, as
      Product Name (Product), defined in SET.
   o  PCN above is the Promotional Card Name, and is written in the SET
      Certificates.

      Example:

      Visa:Gold:WalMart

   Since SET Brand ID has a colon between brand and Product, the two
   colons should be able to delimit Brand, Product, and PCN.

   Product and PCN can omit if necessary.  For the detail of these
   definitions are follows:

   (1) The case of omitting Product

      Definition:   brand::PCN
      Example:      VISA::UC_VISA

   (2) The case of omitting PCN

      Definition:  brand:Product
      Example:     VISA:Gold

   (3) The case of omitting Product, PCN

      Definition:  brand
      Example:     VISA














Kawatsura                    Informational                     [Page 32]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   Invalid Examples:
      VISA:Gold:
      VISA::
      VISA:
      ProtocolBrandId which there is no brand.

8.2.3 Definition of ProtocolId

   Protocolld defines as follows:

      ProtocolId := SETName + Version
      SETName := "SET"
      Version := "v" + version + "." + revision

   Where the version is number matching a major SET version, and the
   revision is the number matching a minor SET revision.
      Example:
      "SETv1.0","SETv2.0"

   NOTE: In the current version of SET/IOTP, "SETv1.0" is fixed as
   ProtocolId.

8.2.4 Relationship between Ids

   ProtocolBrandId must be unique and depends on BrandId and ProtocolId.
   The followings are map among BrandId and ProtocolId, which have
   registered in IANA, and ProtocolBrandId.

      BrandId      ProtocolId   ProtocolBrandId
      -----------------------------------------
      Amex         SETv1.0      Amex
      Dankort      SETv1.0      Dankort
      JCB          SETv1.0      JCB
      MasterCard   SETv1.0      MasterCard
      Nicos        SETv1.0      Amex
      VISA         SETv1.0      VISA

   Regarding to the BrandIds except above, the BrandId registrant (e.g.,
   credit card company) MUST register it in order to be able to map one
   to one between ProtocolBrandId and the pair of BrandId and
   ProtocolId.










Kawatsura                    Informational                     [Page 33]
^L
RFC 3538                SET Supplement for IOTP                June 2003


8.3 Process prior to Payment

8.3.1 FindAcceptedPaymentProtocol Function

   (1) Parameter of PayProtocolPackagedContent

      Name        : O : This is not used in SET/IOTP.
      Content     : M : This should be set "PCDATA".
      Transform   : M : This is set "BASE64".
      ContentData : M : SET specific protocol data.  Includes data
                        that is used to create the 1st SET Initiation
                        Message that is not contained in other
                        IOTP elements.

   (2) Parameter in the ContentData

   Parameters of ContentData are described below.  The Field Values
   follow the [SET EIG].

      Field                      Required
      ------------------------------------
      MIME-Version               Optional
      Content-Transfer-Encoding  Mandatory
      SET-Initiation-Type        Mandatory
      SET-LID-M                  Optional
      SET-InstallTotalTrance     Optional
      SET-Recurring              Optional
      SET-Ext-OID                Optional
      SET-Ext-Data               Optional
      SET-Ext-Mandatory          Optional
      SET-Echo-In-Response       Optional
      SET-Echo-In-Request        Optional

   For Example:

      MIME-Version: 1.0
      Content-Transfer-Encoding: Binary
      SET-Initiation-Type: Payment-Initiation
      SET-Recurring: 31 19960223
      SET-Service-URL: http://www.custcare.com/index.html
      SET-LID-M: 515A533033363632594B

   Note: The contents in ProtoclPackagedContent must be US-ASCII and
   encoded by BASE64.







Kawatsura                    Informational                     [Page 34]
^L
RFC 3538                SET Supplement for IOTP                June 2003


8.3.2 FindPaymentInstrument Function

   (1) Information of PayInstrument

   Returns a list of Payment Instrument IDs related to the BrandId and
   ProtocolBrandId.  In this document, BrandId and ProtocolId are
   defined in section 8.2.

   In this document, Brand has two recognized meanings in SET/IOTP, as
   follows:

   Brand as Primary Brand:
      The Primary Brand is the Brand which is defined as brand in SET,
      such as VISA, MasterCard, Nicos.

   Brand as Dual Brand or Promotional Brand:
      The Dual Brand is the payment instrument which has two Brand, such
      as UC-VISA (UC Card and VISA Card) This style is popular in Japan.

      A Promotional Brand means that, if the Consumer pays with that
      Brand, then the Consumer will receive some additional benefit such
      as discount or frequent flyer point.

   1. ProtocolBrandId as a Primary Brand

      Example:

      "MasterCard", "MasterCard::UC", "MasterCard:Gold:" and
      "MasterCard::WalMart" are all MasterCard Brands.

   2. ProtocolBrandId as a Dual Brand or a Promotional Brand

      Example:

      "MasterCard::UC" is Dual Brand of "MasterCard" and "UC".
      "SET:MasterCard::WalMart" is Promotional Brand of MasterCard-
      WallMart.

   The SET Bridge receives the ProtocolBrandId from the OAC in the
   FindPaymentInstrument Function,











Kawatsura                    Informational                     [Page 35]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (1) If the accepted ProtocolBrandId is XXX:YYY

      The SET Related Module searches for ProtocolBrandIds with the
      string "XXX:YYY:*" (* is wild card), the corresponding
      PaymentInstrumentIds of all ProtocolBrandIds with the matching
      Primary Brand (regardless of also being a Dual Brand or
      Promotional Brand) will be returned to the OAC, for the Consumer
      to select from.

   (2) If the accepted ProtocolBrandId is XXX:YYY:ZZZ

      The SET Related Module searches for ProtocolBrandIDs with the
      string "XXX:YYY:ZZZ", only the corresponding PaymentInstrumentIds
      of the ProtocolBrandIds that match the Dual Brand or Promotional
      Brand will be returned to OAC, for the Consumer to select from.

   Example:

      Assume ProtocolBrandIds are correspond to PaymentInstrumentIds in
      the SET Bridge as follows,

      ProtocolBrandId        PaymentInstrumentId
      ------------------------------------------
      MasterCard             1
      MasterCard::UC         2
      MasterCard::WallMart   3
      VISA::UC               4

      If the SET Bridge receives a ProtocolBrandId as "MasterCard" in
      the FindPaymentInstrument Function, the SET Bridge will return
      "1","2", and "3".  However, if the SET Bridge receives a
      ProtocolBrandId as "MasterCard::UC" to OAC, SET Bridge will
      returns only "2".

8.3.3 GetPaymentInitializationData Function

   (1) Create TradingRolePackagedContent

   If necessary, The SET Related Module generates
   TradingRolePackagedContent corresponded to the received
   ReceiverOrgID. The ContentData of TradingRolePackagedContent is the
   information which the Payment Handler needs to process the SET
   Transaction (for example, the SET SaleDetail. and the SET OD).  The
   ContentData, Content, and the Transform must be agreed upon between
   the Merchant and the Payment Handler beforehand.






Kawatsura                    Informational                     [Page 36]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   The Name Attribute of the packaged contents must include "Payment:"
   as the prefix, for example "Payment:SET-OD".  If there is no
   PackagedContent corresponding to ReceiverOrgID, such that the SET
   Related Module does not need to create the PackagedContent, the
   TradingRolePackagedContent is not created.

   Parameters in TradingRolePackagedContent
   ----------------------------------------
   Name        : O : This is not specified in the current SET/IOTP.
   Content     : M : Should be identical between the Payment
                     Handler and the Merchant.
   Transform   : M : Should be identical between the Payment
                     Handler and the Merchant.
   ContentData : M : Element Data for the Payment Handler to
                     process the SET Transaction.  Should be
                     identical between the Payment Handler and
                     the Merchant.

8.4 Process of Payment

8.4.1 StartPaymentConsumer Function

   (1) Process of the 1st SET Initiation Message

   Since there are similar items between the SET Initiation Message
   Fields and IOTP Elements, IOTP elements can be used for the
   corresponding SET Initiation Fields.  Other SET Initiation Fields,
   except URL information (for detail, see below), is encapsulated in
   the PayProtocolPackagedContent.

   This document does not specify how the SET Related Module implements
   the 1st SET Initiation Process.

   The following table shows the list of SET Initiation Fields that
   corresponds to IOTP Elements.

   SET Initiation Field        IOTP Element (in TPO.Brandlist)
   ---------------------------------------------------------------
   SET-Version                 Consumer selected ProtocolId
   SET-Brand                   Consumer selected ProtocolBrandId
   SET-Amount                  Consumer selected Amount Data in
                               CurrencyAmount.
   --------------------------------------------------------------
   SET Initiation Field        IOTP Element (in OfferResp)
   --------------------------------------------------------------
   Order Description          The hash data of ContentData of
                                    PackagedContent of Order Component.




Kawatsura                    Informational                     [Page 37]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (b) SET-Version:

   SET-Version can be corresponded to ProtocolId.  The version number
   appears after the "v" for the SET-Version.

   ProtocolId -> _______
                 SETv1.0
                     ~~~<- SET-Version

      Figure 12 ProtocolId vs SET-Version

   (c) SET-Brand:

   SET-Brand can be corresponded to ProtocolBrandId.

   (d) SET-PurchAmt:
   It is necessary to adjust the format of the Amount between IOTP and
   SET, since IOTP and SET use different syntax.

   Assumption:

   o  In SET/IOTP, The "ISO4217-A" (the currency code which is
      represented by three alphabet, such as "USD") is mandatory.

   o  Consumer Side SET Related Module should have a mapping table
      between "ISO4217-A" and "ISO4217-N" (the currency code which is
      represented by three digit, such as "840").

   (d) -1 Content of the SET-PurchAmt

   The content of the SET-PurchAmt is as follows:

      SET PurchAmt: currency amount amtExp10

   For a description see [SET] Book 2, page 299.  For example, $129.50
   is represented by "840 12950 -2".  In this case, the corresponding
   values for the "currency", "amount" and "amtExp10" are "840", "12950"
   and "-2" respectively.

   (d) -2 Content of IOTP Amount Elements

   The content of the three IOTP amount elements consist of the
   following: Amount, CurrCodeType and CurrCode.  For a description of
   each, see [RFC 2801].  For example, $129.50 is represented by the
   following:

      CurrCodeType="ISO4217-A"
      CurrCode="USD"



Kawatsura                    Informational                     [Page 38]
^L
RFC 3538                SET Supplement for IOTP                June 2003


      Amount="129.50"

      (d) -3 Example of how-to-translate

      The one-to-one mapping between the IOTP format and the SET format
      is very simple.  This example of sequence below uses the example
      of IOTP amount Element above.

   1) Translate from IOTP CurrCode (ISO4217-A) to SET currency (ISO-
      4217-N).  For example, if CurrCode="USD", then the value of
      currency is "840".

   2) Calculate how many decimal places are represented in the Amount.
      For example, if Amount="129.50", there are "2" decimal places.

   3) [The number of decimal places] *( -1) corresponds to the SET
      amtExp10.  In the above case, SET amtExp10 = 2 * (-1) = -2.

   4) 10^[The number of the Amount's decimal places] * Amount
      corresponds to the SET amount.  In the above example, SET amount =
      10^2 * 129.50 = 12950.

   5) Concatenate three integers and use white spaces as a delimiter.

   Finally, in the above case, the SET PurchAmt is represented as "840
   12950 -2".

   (e) SET OD (Order Description) vs. IOTP Order Information

   In the IOTP, the OAC handles the Order Information, such as display
   use, as SET uses the Order Information.  Payment Handler does not
   know the actual Order Information because the Merchant and Payment
   Handler may exist in the separate domains.  However, Payment Handler
   needs to get the SET OD from Merchant via the Consumer or directly
   because Payment Handler needs the SET OD to create 2nd SET Initiation
   message and after.  In this situation, the Merchant should not pass
   the actual order information to the Payment Handler because the order
   information may be considered private data.  Therefore, SET/IOTP
   defines SET OD as the hash of IOTP Order Information.  The hash
   algorithm must be SHA1.

   But the Order Component may be included two or more Packaged Content
   (see [RFC 2801]).  Therefore SET/IOTP specifies to create hash as
   follows:

   (e) -1. If the Name attribute does not have the Name attribute, such
   that the Order Component have only one Packaged Content, hash the
   Contents Data using SHA1 simply and be encoded by BASE64.



Kawatsura                    Informational                     [Page 39]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (e) -2. Otherwise, such that there exists the Name attribute, sort
   the Packaged Contents in the UTF-16 character code order of Name
   attribute and hash the Content Data using SHA1 and concatenate them
   in proper sequence, then hash it using SHA1 again and be encoded by
   BASE64.

   NOTE:
   To avoid different character encodings between applications, in this
   document, SET OD MUST be constructed from the ContentData in
   OrderPackagedContent as follows:

   (1) Convert it to network byte ordered Unicode encoding data.
   (2) Hash (1) using SHA1
   (3) Convert (2) to BASE64 US-ASCII data

   Therefore, "Content-Type","charset" MUST be "text/plain","us-ascii"
   respectively when SET Initiation message is constructed.

   (f) SET-***-URL vs. IOTP Net Location

   In IOTP, the OAC handles location data therefore the OAC does not
   need to pass net location data on to the OPB.  However, some vender
   implemented consumer SET/IOTP wallets may need the URL information to
   process the SET Initiation.  Thus, if necessary, the Consumer's SET
   Related Module must set appropriate URL data to SET-***-URL.

   (2) Create the next SET related message

   Generate SET related message (SET PInitReq or SET Initiation
   Response) at the SET Related Module, to be sent to the Payment
   Handler.

   (3) Error check of the next SET related message.

   If SET related message which is created in (2) is SET Initiation
   Response and includes any error in it, SET Related Module creates an
   ErrorResponse message with ErrorCode to "EncapProtErr" and the
   Severity to "HardError" and sent it to the OAC.













Kawatsura                    Informational                     [Page 40]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (4) Create PaySchemePackagedContent

   The followings are the parameter of PaySchemePackagedContent in
   StartPaymentConsumerResponse.

   ContentData : M : SET Related Message which is encoded by
                     BASE64. (e.g., SET PinitRes message or
                     SET Initiation Response Message)
   Name        : O : This is not used in the current SET/IOTP.
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64".

   (5) Store of the Payment Information

   SET Bridge should store the following in the DataBase:

   o  ConsumerPayId
   o  PaySchemePackagedContent
   o  ContStatus
   o  ContentSoftwareId (corresponding to the PaySchemePackagedContent)
   o  ProcessState

8.4.2 StartPaymentPaymentHandler Function

   (1) Process for TradingRoleData

   SET Bridge must processes appropriately, for example pass it to the
   SET Core, if there exists the TradingRolePackagedContent as the input
   Parameter.

   (2) SET Specific Process

   The SET Related Module processes the SET Initiation Response or the
   SET Transaction (SET PInitReq).  In addition, the SET Related Module
   generates a message (the next SET Initiation Message or SET PInitRes)
   corresponding to the results of the processed message.  This message
   will be sent to the Consumer.

   (3) Error check of the next SET related message.

   If SET related message which is created in (2) includes any error,
   SET Related Module create an ErrorResponse message with ErrorCode to
   "EncapProtErr" and the Severity to "HardError" and sent it to the
   OAC.







Kawatsura                    Informational                     [Page 41]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (4) Generate PaySchemePackagedContent

   PaySchemePackagedContent which Encapsulate the SET Initiation Message
   or SET PInitRes into ContentData and generate the
   PaySchemePackagedContent.  The Parameters of PaySchemePackagedContent
   as Output is as follows:

   ContentData : M : SET Related Message which is encoded by
                     BASE64 (e.g., SET PinitRes message or
                     SET Initiation Response Message).
   Name        : O : This is not used in the current SET/IOTP.
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64"

8.4.3 ContinueProcess Function (Consumer Side)

   (1) SET Specific Process

   The Parameters of PaySchemePackagedContent as Input is as follows:

   ContentData : M : SET Related Message which is encoded by
                     BASE64 (e.g., SET PinitRes message,
                     SET PRes message or SET Initiation
                     Response Message).
   Name        : O : This is not used in the current SET/IOTP.
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64"

   SET Related Module processes the SET Related Message in the
   PaySchemePackagedContent, then SET Related Message corresponding to
   the processed message is created if necessary.

   (2) SET Related Message Error Check

   If SET related message which is created in (2) includes any error,
   SET Related Module create an ErrorResponse message with ErrorCode to
   "EncapProtErr" and the Severity to "HardError" and sent it to the
   OAC.

   (3) Create PaySchemePackagedContent

   The followings are the parameter of PaySchemePackagedContent in
   ContinueProcessResponse.

   ContentData : M : SET Related Message which is encoded by
                     BASE64 (e.g., SET PinitReq message,
                     SET PReq message or SET Initiation
                     Response Message).



Kawatsura                    Informational                     [Page 42]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   Name        : O : This is not used in the current SET/IOTP.
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64".

   If the ContentData which has received from Payment Handler is SET
   PRes message, this data is not created.

8.4.4 ContinueProcess Function (Payment Handler Side)

   (1) Brand Integrity Check between IOTP Elements and SET Elements

   Since the Consumer sets the Amount and Brand in the SET Message,
   based on the IOTP message, it might be altered when the IOTP message
   is copied to the SET message.  Thus, the Payment Handler needs to
   check the Elements in IOTP components (Payment, etc.) and the
   Elements in the SET message to make sure they are consistent.  The
   IOTP Brand specified by the Merchant should correspond to the Brand
   used in the SET payment.

   The Brand Integrity check sequence is as follows:

   (a) After receiving the SET PReq message, check the Consumer selected
   Brand information (e.g., ProtocolBrandId) in the IOTP Payment Request
   against information in the SET certificate in the SET PReq message.

   (b) If they do not match, return a SET Bridge Level Error
   (Severity="HardError", ErrorCode="AttNotValid" and Names="BrandId").

   Additionally, the SET PReq message signature must be verified with
   the SET CardHolder's certificate.  (This is done during a normal SET
   Transaction.)

   NOTE: This integrity check is necessary evenif There is no
   Promotional Card Name in the ProtocolBrandId because SET may have
   selected the MasterCard even though IOTP has selected the VISA.

   (2) SET Related Process

   Encapsulate the SET related Message (SET Initiation Message or SET
   Transaction Message) in to Content Data of PaySchemePackagedContent
   and send it to the Sender.










Kawatsura                    Informational                     [Page 43]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   The followings are the parameters of PaySchemePackagedContent as
   output.

   ContentData : M : SET Related Message which is encoded by
                     BASE64 (e.g., SET PinitReq message,
                     SET PReq message or SET Initiation
                     Response Message).
   Name        : O : This is not used in the current SET/IOTP.
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64".

   (3) SET Related Message Error Check

   If SET related message which is created in (2) includes any error,
   SET Related Module create an ErrorResponse message with ErrorCode to
   "EncapProtErr" and the Severity to "HardError" and sent it to the
   OAC.

   If SET related message which is created in (2) is SET PRes message,
   and its message includes except:

   (a) CompletionCode in SET PRes message is "authorizationPerformed"
   and AuthCode is "Approved" or (b) CompletionCode in SET PRes message
   is "capurePerformed" and CapCode "Success",

   SET Related Module create ErrorResponse message with ErrorCode to
   "BusinessError"and the Severity to "HardError" and sent it to the
   OAC.

   (4) Create PaySchemePackagedContent

   The followings are the parameter of PaySchemePackagedContent in
   ContinueProcessResponse.

   ContentData : M : SET Related Message which is encoded by
                     BASE64 (e.g., SET PinitRes message,
                     SET PRes message or next SET Initiation
                     Message).
   Name        : O : "PRes" only if ContentData includes
                     SET PRes message, otherwise this is
                     not used in the current SET/IOTP.
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64".

   If ContentData includes the SET PRes message, ContStatus MUST be
   "End".





Kawatsura                    Informational                     [Page 44]
^L
RFC 3538                SET Supplement for IOTP                June 2003


8.4.5 InquireProcessState Function

   (1) Setting ProcessState

   Values for the ProcessState are described in section 8.9.2.

   (2) Setting CompletionCode

   Set to "Unspecified" when a SET Business Failure has occurred, and
   set StatusDesc to the value corresponding to AuthCode or CapCode.

   (3) Setting StatusDesc

   The values for PayStatusDesc are not specified in the SET/IOTP.

   (4) Create PayReceiptNameRefs

   Set to "PRes" in the PayReceiptNameRefs

8.5 Payment Receipt

8.5.1 CheckPayReceipt Function

   SET Related Module does not check the Payment Receipt Information
   especially, sends the general response message as long as valid
   request message.

   The Parameters of PayReceiptPackagedContent are followings:

   Name        : O : This MUST be set "PRes"
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64".
   ContentData : M : SET PRes message which is encoded by BASE64.

8.5.2 ExpandPayReceipt Function

   (1) PayReceiptPackagedContents

   The Parameters of PayReceiptPackagedContent are as follows:

   Name        : O : This MUST be set "PRes"
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64".
   ContentData : M : SET PRes message which is encoded by BASE64.







Kawatsura                    Informational                     [Page 45]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (2) Get the current status information

   SET Related Module gets out the following element from Data Base
   using ConsumerPayId, PaymentHandlerPayId as keys.

   o  BrandId
   o  ProtocolBrandId
   o  PayInstrumentId
   o  Amount
   o  CurrCodeType
   o  CurrCode
   o  PayDirection

   (3) Get the SET Data

   SET Related Module gets the following data from SET PRes message
   which take as the Request Message.

   (a) Date Field in the MessageWrapper Date field between SET and IOTP
   is slightly different.  The different things are as follows:

   o  There is no TimeZone in the Date field of SET.

   o  Second and Milli-second can be omitted in the Date field of SET

   Therefore, SET Related Module needs to compensate the Date
   information when TimeStamp field is set.

   (b) AuthRatio in SET PRes message.  (CapRatio is high priority than
   AuthRatio if available.)

   (c) LID_M in SET PRes message.  (The style of this value is the same
   as it of SET Initiation message.)

8.6 Status Inquiry

   In SET/IOTP, SET Inquiry Initiation is not supported (i.e., omitted).
   SET Inquiry Messages are embedded in the PaySchemeData element in
   IOTP Inquiry Messages.

   The Parameters of PaySchemePackagedContent in
   StartPaymentInquiryResponse are follows:

   Name        : O : This is not used in the SET/IOTP.
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64".
   ContentData : M : SET InqReq message which is encoded by BASE64.




Kawatsura                    Informational                     [Page 46]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   The Parameters of PaySchemePackagedContent in InqurePaymentStatus are
   follows:

   Name        : O : This is not used in the SET/IOTP.
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64".
   ContentData : M : SET InqReq message which is encoded by BASE64.

   The Parameters of PaySchemePackagedContent in
   InquirePaymentStatusResponse are follows:

   Name        : O : This is not used in the SET/IOTP.
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64".
   ContentData : M : SET InqRes message which is encoded by BASE64.

   The Parameter of PaySchemePackagedContent in ContinueProcess are
   follows:

   Name        : O : This is not used in the SET/IOTP.
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64".
   ContentData : M : SET InqRes message which is encoded by BASE64.

8.7 Resume Process

   The Parameter of PaySchemePackagedContent in
   RequmePaymentConsumerResponse are as follows:

   Name        : O : This is not used in the SET/IOTP.
   Content     : M : This field should be set to "PCDATA".
   Transform   : M : This must be set "BASE64".
   ContentData : M : SET Related Message which is encoded by
                     BASE64 (e.g., SET PinitRes message
                     or SET Initiation Response Message).

8.8 SET Scheme Specific Authentication on IOTP

   IOTP authentication, which uses the SET Scheme, is not used in
   SET/IOTP.











Kawatsura                    Informational                     [Page 47]
^L
RFC 3538                SET Supplement for IOTP                June 2003


8.9 SET Bridge ProcessState

8.9.1 SET Bridge ProcessState of Consumer

   No Status ----> InProgress    : When StartPaymentConsumer Function
                                   is called

   InProgress ---> InProgress    : When ContinueProcess Function
                                   is called
                                 : When ChangeProcessState Function
                                   (ProcessState="Failed") is called

   InProgress ---> ProcessError  : When ChangeProcessState Function
                                   (ProcessState="ProcessError") is
                                   called
                                 : The Technical Error (Hard Error)
                                   is occurred in SET Bridge

   InProgress ---> CompletedOK   : When ChangeProcessState Function
                                   (ProcessState="CompletedOK") is
                                   called

   InProgress ---> Failed        : When ChangeProcessState Function
                                   (ProcessState="failed") is called
                                 : The Business Error is occurred
                                   in SET Bridge

   InProgress ---> Suspended     : When ChangeProcessState Function
                                   (ProcessState="Suspended") is
                                   called
                                 : ErrorCode="ResumeRequired" is
                                   is occurred.

   Suspend ---> InProgress       : ResumePaymentConsumer Function
                                   is called

   Suspend ---> ProcessError     : When ChangeProcessState Function
                                   (ProcessState="ProcessError") is
                                   called (the Technical Error is
                                   occurred prior to ResumePayment-
                                   Consumer Function call)
                                 : The Technical Error (Hard Error)
                                   is occurred in SET Bridge (the
                                   Technical Error is occurred while
                                   ResumePaymentConsumer is calling)






Kawatsura                    Informational                     [Page 48]
^L
RFC 3538                SET Supplement for IOTP                June 2003


8.9.2 SET Bridge ProcessState of Payment Handler

   No Status ----> InProgress    : When StartPaymentPaymentHandler
                                   is called

   InProgress ---> InProgress    : When ContinueProcess Function
                                   is called
                                 : When ChangeProcessState Function
                                   (ProcessState="Failed") is called

   InProgress ---> ProcessError  : When ChangeProcessState Function
                                   (ProcessState="ProcessError") is
                                   called
                                 : The Technical Error (Hard Error)
                                   is occurred in SET Bridge
                                 : SET Error Message is occurred

   InProgress ---> CompletedOK   : When SET Transaction is completed.

   InProgress ---> Failed        : When ChangeProcessState Function
                                   (ProcessState="failed") is called
                                 : The Business Error is occurred
                                   in SET Bridge

   CompletedOK ---> Failed      :  When ChangeProcessState Function
                                   or CancelPayment Function
                                   (ProcessState="Failed") is called
                                   and the payment is cancelled.

8.10 Relationship between Pay Step and Deliv Step on SET/IOTP

   SET/IOTP recommends the following regarding Delivery:

   Physical Goods
   --------------
   For physical goods, the IOTP Delivery Exchanges should be omitted.
   That is, set DelivExch=False and DelivAndPayResp=False in the
   Delivery Component.  This is to avoid the situation where the IOTP
   Delivery Handler must check with the IOTP Payment Handler on the
   status of a credit authorization.  When a Delivery Inquiry
   transaction might occur, the DelivReqNetLocn attribute in the
   DeliveryData Element must have been specified at the time of the
   original Offer Response Message.  If you want to use the Delivery
   Exchange, you need to process the inquiry of the credit authorization
   out of IOTP between IOTP Payment Handler and Delivery Handler.






Kawatsura                    Informational                     [Page 49]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   Digital Goods
   -------------
   For digital goods sold through SET/IOTP, authorization should be
   processed on a real-time basis.

8.11 Completion Code

   In SET/IOTP, the CompletionCode, which is a Business Error Code, is
   set as follows:

   Value                    Description
   ------------------------------------------------------
   BrandNotSupp             This value is not used.
   CurrNotSupp              This value is not used.
   AuthError                The IOTP Authentication has
                            failed for any reason.
   InsuffFunds              This value is not used.
   InstBrandInvalid         This value is not used.
   PaymentDecl              A SET business failure has occurred.
   InstNotValid             This value is not used.
   BadInstrument            This value is not used.
   Unspecified              Unspecified error.  There is some known
                            problem or error, which does not fall
                            into one of the other CompletionCodes.

8.12 PercentComplete

   This document recommends to set the PercentComplete as follows:

   SET Related    Setting for     Setting for        Value of
       Message       Consumer     Paymnet Handler    PercentComplete
   ------------+---------------+------------------+-----------------
   SET Initia- |After 1st SET  |After 1st SET     |20
   tion        |Initiation     |Initiation        |
               |Response has   |Response has      |
               |Cteated        |Processed         |
               |(See Note)     |(See Note)        |
   ------------+---------------+------------------+----------------
   SET PinitReq|After Created  |After Processed   |40
   ------------+---------------+------------------+----------------
   SET PinitRes|After Processed|After Created     |60
   ------------+---------------+------------------+----------------
   SET PReq    |After Created  |After Processed   |80
   ------------+---------------+------------------+----------------
   SET PRes    |After Processed|After Created     |100
   ------------+---------------+------------------+----------------





Kawatsura                    Informational                     [Page 50]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   Note: According to the SET Initiation, PercentComplete should be set
   "20" at the timing of 1st SET Initiation Response is
   created/processed because number of its message is variable.

8.13 Severity

   In the current version of SET/IOTP, if a technical error occurs in
   the SET Bridge, the Severity has to be always set to "HardError".

9. Error Handling

   This chapter describes types of handling Errors.

9.1 Types of Errors

   SET/IOTP defines the following error types:

   (1) IOTP Level Error

   This is defined as an error which is NOT specified in [SET EIG] nor
   [SET].  IOTP Level Errors are divided into two types according to the
   following:

   OAC Level Error:   Error in the OAC.  This error is defined in the
   [IOTP].

   SET Related Module Level Error:   Error generated in by process on
   the SET Related Module, not specified in [SET EIG] nor [SET].  For
   example, when checking the consistency between SET and IOTP elements
   on SET Related Module, an error might be returned to OAC.

   (2) SET Level Error

   This is defined as an error which is specified in [SET EIG] or [SET].
   SET Level Errors have been divided into two types of error according
   to following:

   SET Technical Level Error: Error in the SET Related Module.  This
   error is defined in [SET] or [SET EIG].  SET Technical Level Errors
   are further subdivided into two types of errors:

   (a) SET Initiation Error Error while the SET Initiation Process is in
   progress.

   (b) SET Transaction Error Error when the SET Transaction (SET
   PInitReq message, SET PReq message, etc.) is in progress.





Kawatsura                    Informational                     [Page 51]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   SET Business Level Error: Error when a business error (e.g., an
   authorization failure) occurs while the SET Transaction is being
   processed.  In SET, Business Level Errors will be returned in the SET
   PRes message.  SET does not use a SET Error Message for this type of
   error.  However, it is necessary to present the OAC with what kind of
   SET Business Error has occurred.

   In this below, the details of each errors above are described.

9.2 IOTP Level Error (OAC Error)

   When OAC Level Errors have occurred, if necessary, the sender and
   receiver must issue ChangeProcessState API and change the status.
   For the detail of these errors, see [IOTP].

9.3 IOTP Level Error (SET Bridge Error)

   This is the error generated in a process on the SET Related Module,
   not specified in [SET EIG] nor [SET].  For example, when checking the
   inconsistency between SET and IOTP elements on SET Related Module, it
   might cause an error.  This error should be notified to OAC.

   In this case, as a response message, Payment Scheme Data is not
   returned.  An appropriate information must be set to Status Response.

9.4 SET Level Error (SET Technical Error)

9.4.1 SET Initiation Error

   There are two SET Initiation errors as follows:

   o  Error generated in SET Initiation Message

   o  Error generated in SET Initiation Response Message.

   (1) SET Initiation Message Error

   [SET EIG] describes the error handling when a problem rises in SET
   Initiation Message.  So the Consumer will do the same error handling
   in 9.4.2.

   When SET Initiation Error rises in 1st Initiation Message, an error
   message will be returned to the Merchant.  If an error occurs after
   2nd Initiation Message, an error message will be returned to the
   Payment Handler.  SET Initiation Response will be generated having
   SET-Error-Field in Response Message Header and will be returned
   ErrorCode as "PayEncapError" and Severity as "HardError".




Kawatsura                    Informational                     [Page 52]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (a) SET Initiation Response Error

   In SET EIG, there is no description about the handling on the
   problems in SET Initiation Response.  However, it is necessary to
   define some handling for the problems in SET/IOTP

   (b) Process of Payment Handler

   When a problem rises in SET Initiation Response, SET Related Module
   generates ErrorResponse, which is included the "EnCapProtoErr" as
   ErrorCode and the "HardError" as Severity.  But
   PaySchemePackagedContent is not included in this API.

   (2) Process of Consumer

   ChangeProcessState API must be issued, and ProcessState must be
   modified.

9.4.2 SET Transaction Error

   (1) Process of Sender

   When a SET Transaction Error rises, SET Core creates SET Error
   Message.  Then the SET Related Module creates ErrorResponse Message
   which includes "HardError" as Severity, "EnCapProtoErr" as ErrorCode
   and PaySchemePackagedContent.  The SET Bridge passes the
   ErrorResponse Message to OAC.  OAC will generate an Error Block which
   includes PaySchemePackagedContent and sends it to the Receiver side.

   (2) Process of Receiver

   With ContinueProcess API, receiver's OAC sends the message including
   the PaySchemeData to SET Bridge.  SET Bridge passes the SET Error
   Message to SET Core for this process.  After that, SET Bridge sends
   "End" status with ContinueProcessResponse API.

9.5 SET Level Error (SET Business Error)

   (1) Process of Payment Handler

   SET Related Module checks the SET Business Error in StatusCode in SET
   PRes message.  When SET Transaction Error occurs, SET Related Module
   creates ErrorResponse Message which is included SET PRes as
   PaySchemePackagedContent and ErrorCode as "BusinessError" and returns
   it to OAC.  OAC creates Payment Response Block after gets the SET
   scheme specific receipt in InquireProcessState/Response, and sends it
   to the Consumer.




Kawatsura                    Informational                     [Page 53]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   (2) Process of Consumer

   SET Related Module conducts the same process as in the process that
   Consumer receives Payment Response Block.

10. Security Considerations

   In the IOTP, Merchant and Payment Handler may exist in different
   domains.  So, if the Merchant passes the payment related information
   to the Payment Handler via the Consumer, the payment security level
   may depend on the IOTP.  If you want to avoid this, you will need to
   check integrity of these data by using out-of-band communication
   between the Merchant and the Payment Handler.  In this case, the
   security level depends on the communication path between them.

11. References

   The following books provide essential background material.  Readers
   are strongly encouraged to consult these references for more
   information.

   [BASE64]           Base64 Content-Transfer-Encoding. A method of
                      transporting binary data defined by MIME. See: RFC
                      2045: Multipurpose Internet Mail Extensions (MIME)
                      Part One: Format of Internet Message Bodies.  N.
                      Freed & N.Borenstein. November 1996.

   [RFC 2801]         Burdett, D., "Internet Open Trading Protocol -
                      IOTP, Version 1.0", RFC 2081, April 2000.

   [SET]              SET Secure Electronic Transaction (TM) , Version
                      1.0, May 31, 1997
                      Book 1: Business Description
                      Book 2: Programmer's Guide
                      Book 3: Formal Protocol Definition

   [SET EIG]          External Interface Guide to SET Secure Electronic
                      Transaction, Sep 24, 1997.

   [SJR]              "SET Secure Electronic Transaction Specification"
                      Support for Japanese Requirements, Mar 16, 1998.

   [IOTP Payment API] Hans, W., et al., "Payment API for v1.0 Internet
                      Open Trading Protocol (IOTP)", Work in Progress.







Kawatsura                    Informational                     [Page 54]
^L
RFC 3538                SET Supplement for IOTP                June 2003


   [ISO4217]          ISO 4217: Codes for the Representation of
                      Currencies. Available from ANSI or ISO.

   [XML]              Extensible Mark Up Language. A W3C recommendation.
                      See http://www.w3.org/TR/1998/REC-xml-19980210 for
                      the 10 February 1998 version.

12. IANA Considerations

   This document does not ask for any action from IANA.  It references
   an existing registry, iotp-codes, where at the time of publication of
   this RFC the following BrandID's are registered:

      Amex, Dankort, JCB, Maestro, MasterCard, MICOS, VISA, atCredits,
      EZpay, GeldKarte, Mondex, paybox

13. Acknowledgement

   The author of this document appreciates the following contributors to
   this protocol (in alphabetic order of company) without which it could
   not have been developed.

   Andrew Drapp              Hitachi Europe, Ltd.

   David Burdett             Commerce One (ex. Mondex International)

   Donald Eastlake 3rd       Motorola (ex. IBM)

   Hans-Bernhard  Beykirch   SIZ

   John Wankmuller           MasterCard International

   Mark Linehan              IBM

   Richad D. Brown           Kedemon (ex. Globe SET)

   Werner Hans               SIZ

14. Author's Address

   Yoshiaki Kawatsura
   Hitachi, Ltd.
   890 Kashimada Saiwai-ku Kawasaki-shi
   Kanagawa, 212-8567 Japan

   EMail: kawatura@bisd.hitachi.co.jp





Kawatsura                    Informational                     [Page 55]
^L
RFC 3538                SET Supplement for IOTP                June 2003


15.  Full Copyright Statement

   Copyright (C) The Internet Society (2003).  All Rights Reserved.

   This document and translations of it may be copied and furnished to
   others, and derivative works that comment on or otherwise explain it
   or assist in its implementation may be prepared, copied, published
   and distributed, in whole or in part, without restriction of any
   kind, provided that the above copyright notice and this paragraph are
   included on all such copies and derivative works.  However, this
   document itself may not be modified in any way, such as by removing
   the copyright notice or references to the Internet Society or other
   Internet organizations, except as needed for the purpose of
   developing Internet standards in which case the procedures for
   copyrights defined in the Internet Standards process must be
   followed, or as required to translate it into languages other than
   English.

   The limited permissions granted above are perpetual and will not be
   revoked by the Internet Society or its successors or assigns.

   This document and the information contained herein is provided on an
   "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
   TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
   BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
   HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Acknowledgement

   Funding for the RFC Editor function is currently provided by the
   Internet Society.



















Kawatsura                    Informational                     [Page 56]
^L