title: How to use this JSON response?
body: <p>I want to use donation payment with my custom website.</p>
  
  <p>There is a URL I should connect to and pass 2 value with the name "sku" &amp; "device_id".</p>
  
  <p>As asnwer the web gives me a value with name of "status" and a paycode with a value like this "726287618769179".</p>
  
  <p>If "status" equals "READY_TOPAY" I should go to next url+paycode and 
  then user can fill card number and password and etc.</p>
  
  <p>I use this code to connect and communicate with the web:</p>
  
  <pre><code>  let DID = UIDevice.currentDevice().identifierForVendor!.UUIDString
      print("Device ID is : \(DID)")
  
      let url = NSURL (string: "https://qqqq.com/rest-api/pay-request");
      let requestObj = NSURLRequest(URL: url!);
      webView.loadRequest(requestObj);
  
  
  
       let request = NSMutableURLRequest(URL: NSURL(string: "https://qqqq.com/rest-api/pay-request")!)
       request.HTTPMethod = "POST"
       let postString = "mypayid&amp;device_id=\(DID)"
       request.HTTPBody = postString.dataUsingEncoding(NSUTF8StringEncoding)
       let task = NSURLSession.sharedSession().dataTaskWithRequest(request) { data, response, error in
       guard error == nil &amp;&amp; data != nil else {                                                          // check for fundamental networking error
       print("error=\(error)")
       return
       }
  
       if let httpStatus = response as? NSHTTPURLResponse where httpStatus.statusCode != 200 {           // check for http errors
       print("statusCode should be 200, but is \(httpStatus.statusCode)")
       print("response = \(response)")
       }
  
       let responseString = NSString(data: data!, encoding: NSUTF8StringEncoding)
       print("responseString = \(responseString)")
          if (responseString?.UTF8String.) {
  
              print("YESsssss")
          }
       }
       task.resume()
  </code></pre>
  
  <p>The problem is I get the first JSON answer like this:</p>
  
  <pre><code>responseString = Optional({"error":false,"status":"READY_TO_PAY","pay_code":"4443697552108","prd_status":1})
  </code></pre>
  
  <p>I don't know what to do with this! </p>
  
  <p>How should I tell if "status" equals "READY_TO_PAY" go to next url+paycode?</p>