这个直接看支付宝官方资料即可。
我用的是Java版的,里面有文档说明,而且也有demo,代码就是一个Notify.jsp。
http://club.alipay.com/read-htm-tid-9976972.html
http://help.alipay.com/support/help_detail.htm?help_id=397387
https://b.alipay.com/order/productDetail.htm?productId=2012092400368916&tabId=4#ps-tabinfo-hash
http://blog.csdn.net/sing_sing/article/details/7701418
http://code4app.com/requirement/50ac94446803fa7849000000