jar包:
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\commons-codec-1.8.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\commons-lang3-3.1.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\commons-logging-1.1.1.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\httpclient-4.2.2.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\httpcore-4.2.2.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\jstl-1.2.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\log4j-1.2.17.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\pay-gate-signature-1.0.4.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\slf4j-api-1.7.6.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\slf4j-log4j12-1.7.6.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\spring-asm-3.1.2.RELEASE.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\spring-beans-3.1.2.RELEASE.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\spring-context-3.1.2.RELEASE.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\spring-core-3.1.2.RELEASE.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\spring-expression-3.1.2.RELEASE.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\spring-web-3.1.2.RELEASE.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\spring-webmvc-3.1.2.RELEASE.jar
D:\workspace\jdpaydemo\WebRoot\WEB-INF\lib\xstream-1.4.9.jar
主要jar包:
pay-gate-signature-1.0.4.jar //京东支付所需api
xstream-1.4.9.jar //xml格式和java对象之间的转换
依赖的jar包:
D:\Program Files\apache-tomcat-7.0.55\lib\servlet-api.jar
D:\Program Files\apache-tomcat-7.0.55\lib\jsp-api.jar
主要配置文件
支付的订单信息:(.properties文件)
wepay.merchant.num=22294531
//这里的rsaPrivateKey是测试用的
wepay.merchant.rsaPrivateKey=MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBALXf6twUqul1TATO+5nA66p2wjnRd+g96IXpfV6Sf8WXxwizGj+L19LQYRBXpZHmRh82prJ48d0FcHboCiN8pKutnuZrrKYhvORysOc5bVli0hcCn1TfYDoUWJ1UhjUQloqZKWjUz6LV9QY6bIZ1W4+Hmw6HK1bfFwUq0WzIGkJNAgMBAAECgYBlIFQeev9tP+M86TnMjBB9f/sO2wGpCIM5slIbO6n/3By3IZ7+pmsitOrDg3h0X22t/V1C7yzMkDGwa+T3Rl7ogwc4UNVj0ZQorOTx3OEPx3nP1yT3zmJ9djKaHKAmee4XmhQHdqqIuMT2XQaqatBzcsnP+Jnw/WVOsIJIqMeFAQJBAP9yq4hE+UfM/YSXZ5JR33k9RolUUq8S/elmeJIDo/3N2qDmzLjOr9iEZHxioc8JOxubtZ0BxA+NdfKz4v0BSpkCQQC2RIrAPRj9vOk6GfT9W1hbJ4GdnzTb+4vp3RDQQ3x9JGXzWFlg8xJT1rNgM8R95Gkxn3KGnYHJQTLlCsIy2FnVAkAWXolM3pVhxz6wHL4SHx9Ns6L4payz7hrUFIgcaTs0H5G0o2FsEZVuhXFzPwPiaHGHomQOAriTkBSzEzOeaj2JAkEAtYUFefZfETQ2QbrgFgIGuKFboJKRnhOif8G9oOvU6vx43CS8vqTVN9G2yrRDl+0GJnlZIV9zhe78tMZGKUT2EQJAHQawBKGlXlMe49Fo24yOy5DvKeohobjYqzJAtbqaAH7iIQTpOZx91zUcL/yG4dWS6r+wGO7Z1RKpupOJLKG3lA==
//desKey需要自己申请后获取的
wepay.merchant.desKey=ta4E/ta4E/aspLA3lgFGKmNDNRYU92RkZ4w2t
//rsaPublicKey
wepay.jd.rsaPublicKey=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCKE5N2xm3NIrXON8Zj19GNtLZ8xwEQ6uDIyrS3S03UhgBJMkGl4msfq4Xuxv6XUAN7oU1XhV3/xtabr9rXto4Ke3d6WwNbxwXnK5LSgsQc1BhT5NcXHXpGBdt7P8NMez5qGieOKqHGvT0qvjyYnYA29a8Z4wzNR7vAVHp36uD5RwIDAQAB
wepay.server.query.url=https://paygate.jd.com/service/query
wepay.server.query.refund.url=https://paygate.jd.com/service/queryRefund
wepay.server.refund.url=https://paygate.jd.com/service/refund
wepay.server.uniorder.url=https://paygate.jd.com/service/uniorder
wepay.server.revoke.url=https://paygate.jd.com/service/revoke
wepay.server.fkmPay.url=https://paygate.jd.com/service/fkmPay
wepay.server.cancelUserRelation.url=https://paygate.jd.com/service/cancelUserRelation
wepay.server.getUserRelation.url=https://paygate.jd.com/service/getUserRelation
spring框架:applicationContext.xml:
Properties文件读取用到的bean对象,这里的classpath按自己conf.properties文件存放的路径给