1.֧ӿҪ޸Ĳļ alipay_config.php ļ,index.php;Ҹɹҳʱ return_url(ҳת),notify_url(̨֪ͨ);alipay_notify.php alipay_service.php ޸. alipay_config.php ļ $seller_email,$security_code,$partner Ӧķֱ֧ʺ,ȫУͺid ,ôȡ  alipay_config.php ע˵.
 index.php ҳ,Ҫݲҳ,ҪݵĲ subject(Ʒ),body(Ʒ˵),out_trade_no(ⲿ̼Ҷ.Ϊ˷,index.phpҳõڵʽַ,ű뱣֤ύ֧ʱΨһ,֧)

 վʵﵣ service ֵΪ trade_create_by_buyer,֮ӦĲΪ Ϣ(logistics_fee,logistics_payment,logistics_type),Ʒ,ӦĲֵΪ create_digital_goods_trade_p. (logistics_fee,logistics_payment,logistics_type)

2.֪ͨҳ.
 ,֪ͨصҳ alipay_notify.php(Ҫ޸),retureturn.php(תҳ)
notify_url.php(֪ͨҳ)

 return_url   notify_url .

  Ҹɹ,ӿָreturn_url ,Ҹ return_urlڵҳ,ҳչʾͻ,ҳֻиɹŻת.

 notify_url: ̨֪ͨ,ҳǳ̨е(ҺҶ),Ҹ,֧notify_urlҳڵҳ沢ӦĲݵҳ,ҳ֧ݹĲ޸վ״̬,궩Ҫҳϴӡһsuccess ֧,֧Ĳsuccess,֧ҳ. 
 
  :  Ҹ(trade_status=TRADE_FINISHED)--->֧֪ͨnotify_url--->֧success(ʾɹ,״̬²ٷ,Ǽ֪ͨ,һһηͺ͵ڶη͵ʱ3)
 ʣµĹ,ҷ,ȷջ,׳ɹ