1、商户具备开展银联IC卡交易的权限;
2、商户需要在银联商户服务平台注册用户、申请开通IC卡交易管理权限、配置行商户秘钥。
嵌入开发包
文件组装
关注业务流程
调用接口
系统对接与文件上送
IC卡脱机交易上送开发包可以帮助开展银联IC卡脱机业务的商户,组装IC卡脱机文件,通过调用Webservice的方式完成与银联系统的对接和文件上送。
版本号 | 版本说明 | 更新时间 | 操作 |
---|---|---|---|
v1.1 | 在原有C-LIUNX的基础上支持C-WINDOWS和JAVA版本 | 2015-09-10 | 下载 |
v1.0 | 新增v1.0 | 2015-07-06 | 下载 |
1 ic_load_cfg();
2 tmp_ret=ic_open(argv[1]);
3 tmp_ret=ic_add(in_str_buf,strlen(in_str)/2);
4 tmp_ret=ic_close();
5 或者
6 ic_load_cfg();
7 tmp_ret=ic_open(argv[1]);
8 Struct ic_trans_def*ic_trans=(struct ic_trans_def*)malloc(sizeof(struct ic_trans_def));
9 tmp_ret=ic_trans_init(ic_trans);
10 tmp_ret=ic_iso_fld_set(ic_trans,25,2,"07");
11 tmp_ret=ic_iso_factor_set(ic_trans,0,8,"00000002");
12 tmp_ret=ic_iso_fld_set(ic_trans,0,4,"0221");
13 tmp_ret=ic_iso_add(ic_str_buf,strlen(in_str)/2));
14 tmp_ret=ic_close();
1 ICFile icFile=ICFile.getInstance();
2 tmp_ret=icFile.open("D:\\aa.txt");
3 tmp_ret=icFile.add(StringUtil.hexStr2Chars("00AA60000000006022000000000220302004C034C0801900000000000000777700001302100606376223330450442215D0000101108801001010800104996223330450442215D1561560500050000000015010108214000000001D0218888885D000000000D040000000210000000000003030333032383030303030303031393837363534333231303030303031313536001324000002000500001600000200001204204644353444323135"));
4 tmp_ret=icFile.close();
5 或者
6 ICFile icFile=ICFile.getInstance();
7 tmp_ret=icFile.open("D:\\aa.txt");
8 ICTrans icTrans=null;
9 try {
10 icTrans=new ICTrans(StringUtil.hexStr2Chars("00AA60000000006022000000000220302004C034C0801900000000000000777700001302100606376223330450442215D0000101108801001010800104996223330450442215D1561560500050000000015010108214000000001D0218888885D000000000D040000000210000000000003030333032383030303030303031393837363534333231303030303031313536001324000002000500001600000200001204204644353444323135"));
11 } catch (Exception e)
12 {
13 // TODO Auto-generated catch blocke.printStackTrace();
14 icTrans=null;
15 }
16 tmp_ret=icTrans.addISOFld(25, "07".toCharArray());
17 tmp_ret=icTrans.addFactor(0, "00000002".toCharArray());
18 tmp_ret=icTrans.addFld(0, "0221".toCharArray());
19 tmp_ret=icFile.add(icTrans);
20 tmp_ret=icFile.close();