         let requestBody = [
                 "applepayInfo": data!
         ]
-        submitPaymentDetails(requestBody: requestBody, completion: { (result, error) in
+        submitPaymentDetails(requestBody: requestBody, parseFunction: parseApplePayResponse, completion: { (result, error) in
             if let error = error {
                 completion(nil, error)
                 debugPrint(error.localizedDescription)

        let base64LoginStr = loginData.base64EncodedString()
        return "Basic \(base64LoginStr)"
    }
    
    private static func notifyTokenExpired() {
        DispatchQueue.main.async {
            NotificationCenter.default.post(name: Notification.Name.bsTokenExpirationNotification, object: nil)
        }
    }


    /**

        }
        task.resume()
        semaphore.wait()

        return bsCurrencies
    }


    /**
     Submit CC details to BlueSnap server
     - parameters:
