Latest 1.0.7
Homepage https://github.com/finix-payments/ios-sdk
License Apache-2.0
Platforms ios 9.0
Authors

ios-sdk

  1. import the Payments SDK with with cocoapods by adding pod 'PaymentsSDK', '~> 1.0.7' to the Podfile
  2. import the library into the file
    import PaymentsSDK
  3. The Payments sdk provides a Tokenizer class, a createToken method on that class and a Token struct that will include the token in the ‘id’ property and the fingerprint in the ‘fingerprint’ property
    // paymentType parameter can be added with the public enum PaymentType from the library
    let tokenizer = Tokenizer(host: "api-staging.finix.io", applicationId: "AP2kL9QSWYJGpuAtYYnK5cZY")
    tokenizer.createToken(cardNumber: txtNumber.text!, paymentType: PaymentType.PAYMENT_CARD, expirationMonth: 12, expirationYear: 2021) { (token, error) in
        guard let token = token else {
            print(error!.localizedDescription)
            return
        }
        print(token.id)
        print(token.fingerprint)
    }

Latest podspec

{
    "name": "PaymentsSDK",
    "version": "1.0.7",
    "summary": "Payments sdk for tokenization.",
    "homepage": "https://github.com/finix-payments/ios-sdk",
    "swift_version": "4.1",
    "authors": {
        "Payments Team": ""
    },
    "license": {
        "type": "Apache-2.0",
        "file": "LICENSE"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/finix-payments/ios-sdk.git",
        "tag": "1.0.7"
    },
    "source_files": [
        "src/**/*",
        "src/*"
    ]
}

Pin It on Pinterest

Share This