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!