We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The payUResponse comes as Any in PUCBWebVCDelegate protocol and when I try to change Any to [String: Any] it doesn't do that.
payUResponse
Any
PUCBWebVCDelegate
[String: Any]
Here's the code:
func payUSuccessResponse(_ payUResponse: Any!, surlResponse: Any!) { if payUResponse != nil { print(payUResponse) } if let response = payUResponse as? [String: Any] { print(response) if let id = response["id"] as? Int { print("ID", id) createBooking(with: "\(id)", and: false) } } }
It is failing at if let response =. Can you tell me how I am going to fetch id from payUResponse?
if let response =
id
The text was updated successfully, but these errors were encountered:
@anmolmalhotra Have you got the solution for this ? I'm also facing same issue...
Sorry, something went wrong.
No branches or pull requests
The
payUResponse
comes asAny
inPUCBWebVCDelegate
protocol and when I try to changeAny
to[String: Any]
it doesn't do that.Here's the code:
It is failing at
if let response =
. Can you tell me how I am going to fetchid
from payUResponse?The text was updated successfully, but these errors were encountered: