Skip to content

Commit

Permalink
Update Sources/PrimerSDK/Classes/Core/PrimerHeadlessUniversalCheckout…
Browse files Browse the repository at this point in the history
…/Composable/NolPay/NolPayPhoneMetadataService.swift

Co-authored-by: Jack Newcombe <[email protected]>
  • Loading branch information
borisprimer and jnewc authored Oct 30, 2023
1 parent 1fd47b5 commit 229b8f2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 229b8f2

Please sign in to comment.