Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0x7fa6e5c1d7f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key emptyView.' *** #381

Open
himanshujj opened this issue Sep 4, 2018 · 3 comments

Comments

@himanshujj
Copy link

After generating the token , the view is unable to present and the app is getting crashed throwing an error
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0x7fa6e5c1d7f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key emptyView.' ***
Please provide us a solution for the above issue.

@iRILLLL
Copy link

iRILLLL commented Aug 26, 2019

hi @himanshujj have you fixed it ? I've same problem, mind to share your solution?

thanks

@uziwuzzy
Copy link
Collaborator

uziwuzzy commented Sep 9, 2019

can you show me the code on how you implement it?

@lalkrishna
Copy link

@uziwuzzy try to integrate SDK using Cocoapods on Swift. And present MidtransUIPaymentViewController will make you crash.

Also, how to Convert response to MidtransTransactionTokenResponse?

MidtransMerchantClient.shared().requestPaymentlist(withToken: "SNAP-token-is-here") { (response, error) in
            print("response: \(response). Error: \(error)")
            let token = MidtransTransactionTokenResponse(dictionary: response?.dictionaryRepresentation())
            if let controller = MidtransUIPaymentViewController(token: token) {
                controller.paymentDelegate = self
                self.present(controller, animated: true, completion: nil)
            }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants