TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2016 |
Maintained by James Billingham.
Client-side Obj-C library for the Ravelin API. Ravelin is a fraud detection tool.
At present, Ravelin's only support for client-side functionality is card tokenization. If more functionality is added, this library will be updated to match.
pod 'Ravelin', '~> 0.1.0'
#import <Ravelin/Ravelin.h>
[Ravelin setDefaultPublishableKey:@"pk_live_XXXXXXXX"];
RVLCardParams *cardParams = [RVLCardParams new];
cardParams.number = @"4242424242424242";
cardParams.expiryMonth = 12;
cardParams.expiryYear = 2020; // or cardParams.expiryYearCoerced = 20;
[[RVLAPIClient sharedClient] createTokenForCard:cardParams completion:^(RVLCardToken *cardToken, NSError *error) {
if (error) {
[self handleError:error];
} else {
NSLog(@"%@", cardToken.token); // => tk-8c46447a-fdce-4e48-88aa-234a3c014330
}
}];
Please open an issue on this repository.
MIT licensed - see LICENSE file