Functions

The following functions are available globally.

  • Returns an optional UIColor instance with the given name preferably from the client’s custom resources provider.

    Declaration

    Swift

    public func prefferedColorByProvider(named name: String) -> UIColor

    Parameters

    name

    The name of the UIColor.

    Return Value

    UIColor if found with name.

  • Getting the payment request id from incoming url Should be called inside function: func application(_ application: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:] ) -> Bool

    Declaration

    Swift

    public func receivePaymentRequestId(url: URL, completion: @escaping (Result<String, GiniBankError>) -> Void)

    Parameters

    url

    The incoming url from the business app

    completion

    An action for processing asynchronous data received from the service with Result type as a paramater. Result is a value that represents either a success or a failure, including an associated value in each case. In success case it includes payment request Id. In case of failure error that there is no requestId in incoming url from the business app.