Functions
The following functions are available globally.
-
Returns an optional
UIColorinstance with the givennamepreferably from the client’s custom resources provider.Declaration
Swift
public func prefferedColorByProvider(named name: String) -> UIColorParameters
nameThe 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
urlThe incoming url from the business app
completionAn 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.
View on GitHub
Functions Reference