Latest 0.1.1
Homepage https://github.com/billinghamj/ravelin-ios
License MIT
Platforms ios 7.0
Authors

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

Latest podspec

{
    "name": "Ravelin",
    "version": "0.1.1",
    "summary": "Client-side Obj-C library for the Ravelin API. Ravelin is a fraud detection tool.",
    "homepage": "https://github.com/billinghamj/ravelin-ios",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "James Billingham": "[email protected]"
    },
    "source": {
        "git": "https://github.com/billinghamj/ravelin-ios.git",
        "tag": "v0.1.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "Ravelin/**/*.{m,h}",
    "public_header_files": "Ravelin/**/*.h"
}

Pin It on Pinterest

Share This