                     let memo = "Unknow Error"
                     let error = NSError(domain: memo, code: -1, userInfo: nil)
                     shared.oauthCompletionHandler?(nil, nil, error)
-                    shared.payCompletionHandler?(false)
+                    shared.payCompletionHandler?(.failure(.apiRequest(.missingParameter)))
                     return false
                 }
 

            }
            // Pay
            if urlString.contains("://pay/") {
                var result = false
                defer {
                    shared.payCompletionHandler?(result)
                }
                let queryDictionary = url.monkeyking_queryDictionary
                guard let ret = queryDictionary["ret"] else { return false }
                result = (ret == "0")
                return result
            }



    public class func deliver(_ order: Order, completionHandler: @escaping PayCompletionHandler) {
        if !order.canBeDelivered {
            completionHandler(.failure(.noApp))
            return
        }
        shared.payCompletionHandler = completionHandler
