Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Charge credit cards on iOS 5 using Stripe
branch: master

This branch is even with collision:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
stripe-example
stripe-ios.xcodeproj
.gitignore
README

README

This SDK allows you to charge credit cards on an iOS 5 device using the Stripe API.

Usage is a simple asynchronous call:

#import "Stripe.h"

StripeConnection *stripe = [StripeConnection connectionWithPublishableKey:@"pk_dl4LcpeAxUEPHN3FxzuAQQmhCGmx5"];

StripeCard *card =  [[StripeCard alloc] init];
card.number =       @"4111111111111111";
card.name =         @"Bob Dylan";
card.securityCode = "010";
card.expiryMonth =  [NSNumber numberWithInteger:2];
card.expiryYear =   [NSNumber numberWithInteger:2014];

[stripe performRequestWithCard:card 
                 amountInCents:[NSNumber numberWithInteger:200] 
                       success:^(StripeResponse *token) 
     {
         /* handle success */
     }
                         error:^(NSError *error) 
     {
         /* handle failure */
     }];

Please build the "example" target for an example of it in action.
Something went wrong with that request. Please try again.