egg-aisino-invoice-api
v1.2.9
Published
上海航天电子发票对接平台,Node.js版本的SDK
Downloads
6
Maintainers
Readme
egg-aisino-invoice-api
Install
$ npm i egg-aisino-invoice-api --save
Usage
// {app_root}/config/plugin.js
exports.aisinoInvoiceApi = {
enable: true,
package: 'egg-aisino-invoice-api',
};
Configuration
// {app_root}/config/config.default.js
exports.aisinoInvoiceApi = {
client: { // client必须要
'DSPTBM': '电商平台编码',
'NSRSBH': '纳税人识别码',
'NSRMC' : '纳税人名称',
'XHFMC' : '销货方名称',
'XHF_DZ': '销货方地址',
'XHF_DH': '销货方电话',
'XHF_YHZH': '销货方银行账号',
'KPY': '开票员',
'SKY': '可选',
'HSBZ': '1',
'TERMINALCODE': '0',
'APPID': 'ZZS_PT_DZFP',
'TAXPAYWERID': '税号',
'AUTHORIZATIONCODE': '认证码',
'ENCRYPTCODE':'加密码',
'INTERFACE_FPKJ': 'ECXML.FPKJ.BC.E_INV',
'INTERFACE_FPXZ': 'ECXML.FPXZ.CX.E_INV',
'INTERFACE_FPYX': 'ECXML.EMAILPHONEFPTS.TS.E.INV',
'REQUESTCODE': '请求码',
'RESPONSECODE': '响应码',
'PASSWORD': '密码',
'DATAEXCHANGEID': '交互码',
'KJFP': 'ECXML.FPKJ.BC.E_INV',
'DOWNLOAD': 'ECXML.FPXZ.CX.E_INV',
'EMAIL': 'ECXML.EMAILPHONEFPTS.TS.E.INV',
'REGISTERCODE': '注册码',
'3DES_KEY': '9oyKs7cVo1yYzkuisP9bhA==',
},
};
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.