README.md in alipay-0.1.0 vs README.md in alipay-0.2.0
- old
+ new
@@ -130,10 +130,19 @@
def alipay_web_notify
# except :controller_name, :action_name, :host, etc.
notify_params = params.except(*request.path_parameters.keys)
if Alipay::Notify.verify?(notify_params)
- # valid notify, code your business logic.
+ # Valid notify, code your business logic.
+ # trade_status is base on your payment type
+ # Example:
+ #
+ # case params[:trade_status]
+ # when 'WAIT_BUYER_PAY'
+ # when 'WAIT_SELLER_SEND_GOODS'
+ # when 'TRADE_FINISHED'
+ # when 'TRADE_CLOSED'
+ # end
render :text => 'success'
else
render :text => 'error'
end
end