Skip to content

briancollins/stripe-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This SDK allows you to authorize a Credit Card on an iOS 5.0 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 
                       success:^(StripeResponse *token) 
     {
         /* handle success */
     }
                         error:^(NSError *error) 
     {
         /* handle failure */
     }];

Please build the "example" target for an example of it in action.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published