P卡支付demo更新

This commit is contained in:
egan
2018-05-06 11:39:07 +08:00
parent 58a0e11218
commit 1419e2ef52

View File

@@ -36,13 +36,17 @@ public class PayoneerPayController {
configStorage.setProgramId("商户id");
configStorage.setMsgType(MsgType.json);
configStorage.setInputCharset("utf-8");
configStorage.setUserName("PayoneerPay 用户名");
configStorage.setApiPassword("PayoneerPay API password");
configStorage.setTest(true);
service = new PayoneerPayService(configStorage);
//以下不建议进行使用,会引起两次请求的问题
//Basic Auth
HttpConfigStorage httpConfigStorage = new HttpConfigStorage();
/* HttpConfigStorage httpConfigStorage = new HttpConfigStorage();
httpConfigStorage.setAuthUsername("PayoneerPay 用户名");
httpConfigStorage.setAuthPassword("PayoneerPay API password");
service = new PayoneerPayService(configStorage, httpConfigStorage);
service = new PayoneerPayService(configStorage, httpConfigStorage);*/
}