Skip to content
Bodia edited this page Mar 29, 2021 · 1 revision

This page describes the Akurateco iOS SDK Setup guide.

1. Info Setup

You should get the following information from the administrator to begin working with the Payment Platform.

Info Description
CLIENT_KEY Unique key to identifying the account in Payment Platform (used as request parameter)
CLIENT_PASS Password for Client authentication in Payment Platform (used for calculating hash parameter)
PAYMENT_URL URL to request the Payment Platform

Where to get this information? Follow the introduction guide.

2. iOS Setup

The Akurateco iOS SDK credentials are the mirror of the Payment Platform fields. See above.

  1. Call the SDK initialization in the AppDelegate:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    ...
    let credentials = AkuratecoCredential(clientKey: "merchant-client-key",
                                          clientPass: "merchant-client-pass",
                                          paymentUrl: "merchant-payment-url")
    AkuratecoSDK.config(credentials)
    ...
}

One more thing

  1. In case the SDK is not initialized the fatalError("Akurateko SDK is not configured") will be thrown.

  2. To use the testing environment, please use test cards.

Akurateco

The Akurateco iOS SDK - https://akurateco.com

Clone this wiki locally