{"action":"created","issue":{"url":"https://api.github.com/repos/stripe/stripe-ios/issues/158","labels_url":"https://api.github.com/repos/stripe/stripe-ios/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/stripe/stripe-ios/issues/158/comments","events_url":"https://api.github.com/repos/stripe/stripe-ios/issues/158/events","html_url":"https://github.com/stripe/stripe-ios/issues/158","id":75926088,"number":158,"title":"(\"The operation couldn’t be completed. (Cocoa error 3840.)\")","user":{"login":"allen8300","id":1751906,"avatar_url":"https://avatars.githubusercontent.com/u/1751906?v=3","gravatar_id":"","url":"https://api.github.com/users/allen8300","html_url":"https://github.com/allen8300","followers_url":"https://api.github.com/users/allen8300/followers","following_url":"https://api.github.com/users/allen8300/following{/other_user}","gists_url":"https://api.github.com/users/allen8300/gists{/gist_id}","starred_url":"https://api.github.com/users/allen8300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allen8300/subscriptions","organizations_url":"https://api.github.com/users/allen8300/orgs","repos_url":"https://api.github.com/users/allen8300/repos","events_url":"https://api.github.com/users/allen8300/events{/privacy}","received_events_url":"https://api.github.com/users/allen8300/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-13T09:56:40Z","updated_at":"2015-05-18T04:08:04Z","closed_at":null,"body":"Hey man, I was trying your latest Simple Example,  I followed and checked all the steps as you mentioned. \r\nWhile I failed with error: \"oh no, an error: Optional(\"The operation couldn’t be completed. (Cocoa error 3840.)\")\". \r\n\r\nCan you help out?\r\n\r\n\r\n\r\n\r\nNote: all the example apps require Xcode 6.1 to build and run.\r\n\r\nBefore you can run the app, you need to provide it with your Stripe publishable key.\r\n\r\nIf you haven't already, sign up for a Stripe account (it takes seconds). Then go to https://dashboard.stripe.com/account/apikeys.\r\nReplace the stripePublishableKey constant in ViewController.swift (for the Simple app) or Constants.m (for the Custom app) with your Test Publishable Key.\r\nHead to https://github.com/stripe/example-ios-backend and click \"Deploy to Heroku\" (you may have to sign up for a Heroku account as part of this process). Provide your Stripe test secret key for the STRIPE_TEST_SECRET_KEY field under 'Env'. Click \"Deploy for Free\".\r\nReplace the backendChargeURLString variable in the example iOS app with the app URL Heroku provides you with (e.g. \"https://my-example-app.herokuapp.com\")\r\nAfter this is done, you can make test payments through the app (use credit card number 4242 4242 4242 4242, along with any cvc and any future expiration date) and then view them in your Stripe Dashboard!"},"comment":{"url":"https://api.github.com/repos/stripe/stripe-ios/issues/comments/102916524","html_url":"https://github.com/stripe/stripe-ios/issues/158#issuecomment-102916524","issue_url":"https://api.github.com/repos/stripe/stripe-ios/issues/158","id":102916524,"user":{"login":"allen8300","id":1751906,"avatar_url":"https://avatars.githubusercontent.com/u/1751906?v=3","gravatar_id":"","url":"https://api.github.com/users/allen8300","html_url":"https://github.com/allen8300","followers_url":"https://api.github.com/users/allen8300/followers","following_url":"https://api.github.com/users/allen8300/following{/other_user}","gists_url":"https://api.github.com/users/allen8300/gists{/gist_id}","starred_url":"https://api.github.com/users/allen8300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allen8300/subscriptions","organizations_url":"https://api.github.com/users/allen8300/orgs","repos_url":"https://api.github.com/users/allen8300/repos","events_url":"https://api.github.com/users/allen8300/events{/privacy}","received_events_url":"https://api.github.com/users/allen8300/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T04:08:04Z","updated_at":"2015-05-18T04:08:04Z","body":"Er, every step is checked. The  error happens when uploading token to server. \r\nMy server is base on HTTP, not HTTPS. Is this the reason? \r\nAnd My server code is grabbing from http://www.larryullman.com/2013/01/09/writing-the-php-code-to-process-payments-with-stripe/  . "}}