commit
0d8ad430ec
@ -0,0 +1,45 @@
|
|||||||
|
package au.com.royalpay.payment.manage.support.wechatclients;
|
||||||
|
|
||||||
|
import au.com.royalpay.payment.tools.connections.mpsupport.MpWechatApi;
|
||||||
|
import au.com.royalpay.payment.tools.connections.mpsupport.beans.WechatRedpack;
|
||||||
|
import au.com.royalpay.payment.tools.connections.mpsupport.impls.AbstractMpWechatClientApi;
|
||||||
|
import au.com.royalpay.payment.tools.exceptions.ServerErrorException;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.PostConstruct;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by yishuqian on 11/01/2017.
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class NAPWechatApi extends AbstractMpWechatClientApi implements MpWechatApi {
|
||||||
|
@PostConstruct
|
||||||
|
public void initTemplates() {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String targetMpAccount() {
|
||||||
|
return "globalpay";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getOpenIdKey() {
|
||||||
|
return "globalpay_openid";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public JSONObject sendRedpack(WechatRedpack redpackInfo) {
|
||||||
|
throw new ServerErrorException("Cannot send redpack with this merchant");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public JSONObject redpackStatus(String redpackId) {
|
||||||
|
throw new ServerErrorException("Cannot send redpack with this merchant");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean matchOpenId(String openId) {
|
||||||
|
return openId.startsWith("olHWD");
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Before Width: | Height: | Size: 181 KiB After Width: | Height: | Size: 1.4 MiB |
Loading…
Reference in new issue