Visa Developer Community

Re: Getting "Expected input credential was not present" error when tried pullfundstransact

I was able to resolve this. Had to make a few changes in the delegate method for didReceiveAuthChallenge() in my app.

There is no sample project for Swift/iOS in the getting started guide. Let's get together and put one out there.

Visa Dev Moderator

Re: Getting "Expected input credential was not present" error when tried pullfundstransact

Hi @akshaymhatre,

 

Thanks for sharing with us your success in resolving the issue! Can you please let me know what were the few changes that you did in the delegate method for didReceiveAuthChallenge() in your app?

 

 

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

Thanks,
Diana

Re: Getting "Expected input credential was not present" error when tried pullfundstransact

The didReceiveChallenge method is invoked twice with different authenticationMethod.

Once with NSURLAuthenticationMethodServerTrust and second time with NSURLAuthenticationMethodClientCertificate.

I needed to pass the p12 certificate bundle for the NSURLAuthenticationMethodClientCertificate challenge.

For NSURLAuthenticationMethodServerTrust, had to do the performDefaultHandling.