                    if (code == 1000) {
                        let data = response["data"] as! [[String: Any]]
                        self.pathFront = data[0]["path"] as? String ?? ""
                        self.pathBack = data[1]["path"] as? String ?? ""
                        self.uploadAvatar()
                    } else {
                        PayME.currentVC?.dismiss(animated: false)
                        self.toastMess(title: "error".localize(), message: response["data"]!["message"] as? String ?? "Something went wrong")
                    }

                }, onError: { error in
                    PayME.currentVC?.dismiss(animated: false)
                    self.toastMess(title: "error".localize(), message: (error["message"] as? String) ?? "Something went wrong")
                })
            }