Ravelin 0.1.1

Ravelin 0.1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jun 2016

Maintained by James Billingham.



Ravelin 0.1.1

  • By
  • James Billingham

ravelin-ios

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
    }
}];

Notes

  • the key you provide should start with "pk_"; do not use the "sk_" key

Support

Please open an issue on this repository.

Authors

License

MIT licensed - see LICENSE file