Other Functions

The following functions are available globally.

  • 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.