Home  >  Article  >  WeChat Applet  >  EventKey's subscribe event example

EventKey's subscribe event example

Y2J
Y2JOriginal
2017-05-06 09:53:424094browse

If the user has ever made a payment in this official account, the EventKey will contain the last transaction order number when paying attention, such as

last_trade_no_4002752001201704258347703919

<xml>
    <ToUserName><![CDATA[gh_fcc4da210ff0]]></ToUserName> 
    <FromUserName><![CDATA[oiPuduCHIBb2aHvZoqSm1t7KbXtw]]></FromUserName> 
    <CreateTime>1493702623</CreateTime> 
    <MsgType><![CDATA[event]]></MsgType> 
    <Event><![CDATA[subscribe]]></Event> 
    <EventKey><![CDATA[last_trade_no_4002752001201704258347703919]]></EventKey> </xml>

[Related recommendations]

1. WeChat public account platform source code download

2. WeChat voting source code download

The above is the detailed content of EventKey's subscribe event example. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn