wangfei0904306 / unionpay

接入银联支付,Springboot
MIT License
18 stars 21 forks source link

Request for source of Official SDK of Unionpay #1

Open nicktunac opened 6 years ago

nicktunac commented 6 years ago

Hi wangfei,

Could you help me the source of the Official SDK of Unionpay for 5.1.0 where you used in this repository.

Currently we are using com.unionpay.acp.upacp-sdk:1.0.0, but it doesnt support SHA256 signing method http://maven.marsorstudio.cn/com/unionpay/acp/upacp-sdk/1.0.0/

Thank you.

wangfei0904306 commented 6 years ago

https://open.unionpay.com/ajweb/product/newProDetail?proId=66&cataId=72

try it~

nicktunac commented 6 years ago

Thanks, @wangfei0904306

Got it working already. But the problem I'm facing right now is when this project is packaged. It will throw an error that I cannot read the cert files.

I'm thinking of modifying the initCert() method in CertUtil class to read the cert files.

wangfei0904306 commented 6 years ago

You are right, you can use the absolute path first, and if you succeed, put it in the appropriate location of the project. And you may also face this problem if you package it with springboot jar, which you should resolve