类 NotificationHandler

java.lang.Object
com.wechat.pay.contrib.apache.httpclient.notification.NotificationHandler

public class NotificationHandler
extends java.lang.Object
  • 构造器概要

    构造器 
    构造器 说明
    NotificationHandler​(Verifier verifier, byte[] apiV3Key)  
  • 方法概要

    修饰符和类型 方法 说明
    Notification parse​(Request request)
    解析微信支付通知请求结果

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

  • 方法详细资料

    • parse

      public Notification parse​(Request request) throws ValidationException, ParseException
      解析微信支付通知请求结果
      参数:
      request - 微信支付通知请求
      返回:
      微信支付通知报文解密结果
      抛出:
      ValidationException - 1.输入参数不合法 2.参数被篡改导致验签失败 3.请求和验证的平台证书不一致导致验签失败
      ParseException - 1.解析请求体为Json失败 2.请求体无对应参数 3.AES解密失败