title: Stripe create customer iOS
body: <p>I'm using stripe and parse to allow the user of my app to enter in their credit card and purchase. I got that far the user can make a purchase everything is good. But I want to allow the user to enter their CC information and have that save so they don't have to keep re-entering it. I'm having a really hard time doing this I got the first part all figured out I just need to get this.</p>
  
  <p><strong>Update</strong>:</p>
  
  <pre><code>- (IBAction)save:(id)sender {
      if (![self.paymentView isValid]) {
          return;
      }
      if (![Stripe defaultPublishableKey]) {
          UIAlertView *message = [[UIAlertView alloc] initWithTitle:@"No Publishable Key"
                                                            message:@"Please specify a Stripe Publishable Key in Constants.m"
                                                           delegate:nil
                                                  cancelButtonTitle:NSLocalizedString(@"OK", @"OK")
                                                  otherButtonTitles:nil];
          [message show];
          return;
      }
      [MBProgressHUD showHUDAddedTo:self.view animated:YES];
      STPCard *card = [[STPCard alloc] init];
      card.number = self.paymentView.card.number;
      card.expMonth = self.paymentView.card.expMonth;
      card.expYear = self.paymentView.card.expYear;
      card.cvc = self.paymentView.card.cvc;
      [Stripe createTokenWithCard:card completion:^(STPToken *token, NSError *error) {
          [MBProgressHUD hideHUDForView:self.view animated:YES];
          if (error) {
              [self hasError:error];
          } else {
             [self createCustomerFromCard:(NSString *)token completion:(PFIdResultBlock)handler]; //I'm having trouble on this line here.
          }
      }];
  }
  - (void)hasError:(NSError *)error {
      UIAlertView *message = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", @"Error")
                                                        message:[error localizedDescription]
                                                       delegate:nil
                                              cancelButtonTitle:NSLocalizedString(@"OK", @"OK")
                                              otherButtonTitles:nil];
      [message show];
  }
  
  + (void)createCustomerFromCard:(NSString *)token completion:(PFIdResultBlock)handler
  {
      [PFCloud callFunctionInBackground:@"createCustomer"
                         withParameters:@{
                                          @"tokenId":token,
                                          }
                                  block:^(id object, NSError *error) {
                                      //Object is an NSDictionary that contains the stripe customer information, you can use this as is, or create an instance of your own customer class
                                      handler(object,error);
                                  }];
  }
  </code></pre>