title: How to use Stripe Connect in an iOS app
body: <p>Has anyone had success using Stripe connect with an iOS app.  I have a few questions:</p>
  
  <p>I'm following the guidelines here:  <a href="https://stripe.com/docs/connect/getting-started">https://stripe.com/docs/connect/getting-started</a></p>
  
  <p>Registering an Application: easy, no problem here</p>
  
  <p>Then a little further down:</p>
  
  <p>Send your users to Stripe: again, easy no problem here, I just have a button that opens up the link in a UIWebView.  I assume having the client_id in the URL is fine?  A lot of my uncertainty is what IDs/keys I should hard-code into the app</p>
  
  <p>Then a little further down:</p>
  
  <p>After the user connects or creates a Stripe account, we'll redirect them back to the redirect_uri you set in yourapplication settings with a code parameter or an error.</p>
  
  <p>What I'm doing here is using the UIWebview's webView:shouldStartLoadWithReqest:navigationType delegate method to check for the string "code=" in the URL.  If it finds that, then I'm able to grab the "code" parameter.  So in reality, the redirect_uri is completely unnecessary for me.  Is this the right way to handle this?  Should I be doing this within my app or on my server?</p>
  
  <p>After receiving the code, we are supposed to make a POST call to receive an access_token.  Again, should this be done within the app or on the Server?  It requires the use of a secret_key, so I'm guessing server?  And how do I send credit card information along with this token if the token needs to be sent to the server?  I know how to obtain the card number, exp date, and CVV.  But in terms of passing it to the server (with or without the token) is something I'm not sure of.</p>
  
  <p>Then when it comes to actually writing PHP, Ruby, or Python code on the server, I'm at a total loss.</p>
  
  <p>Any help would be greatly appreciated.</p>