From 229b8f296350d3686e9522bbd899720f67d4e9b6 Mon Sep 17 00:00:00 2001 From: borisprimer <137198782+borisprimer@users.noreply.github.com> Date: Mon, 30 Oct 2023 12:58:35 +0100 Subject: [PATCH] Update Sources/PrimerSDK/Classes/Core/PrimerHeadlessUniversalCheckout/Composable/NolPay/NolPayPhoneMetadataService.swift Co-authored-by: Jack Newcombe --- .../Composable/NolPay/NolPayPhoneMetadataService.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/PrimerSDK/Classes/Core/PrimerHeadlessUniversalCheckout/Composable/NolPay/NolPayPhoneMetadataService.swift b/Sources/PrimerSDK/Classes/Core/PrimerHeadlessUniversalCheckout/Composable/NolPay/NolPayPhoneMetadataService.swift index 5c471841d6..4200c9e22e 100644 --- a/Sources/PrimerSDK/Classes/Core/PrimerHeadlessUniversalCheckout/Composable/NolPay/NolPayPhoneMetadataService.swift +++ b/Sources/PrimerSDK/Classes/Core/PrimerHeadlessUniversalCheckout/Composable/NolPay/NolPayPhoneMetadataService.swift @@ -32,9 +32,9 @@ struct NolPayPhoneMetadataService: NolPayPhoneMetadataProviding { client.getPhoneMetadata(clientToken: clientToken, paymentRequestBody: requestBody) { result in switch result { - case .success(let phoneMedatadaResponse): - let countryCode = phoneMedatadaResponse.countryCode - let mobileNumber = phoneMedatadaResponse.nationalNumber + case .success(let phoneMetadataResponse): + let countryCode = phoneMetadataResponse.countryCode + let mobileNumber = phoneMetadataResponse.nationalNumber if phoneMedatadaResponse.isValid { completion(.success((.valid, countryCode, mobileNumber))) } else {