Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import enum Alamofire.AFError
import struct Alamofire.HTTPMethod
import KeychainAccess

#if canImport(UIKit)
#if !os(watchOS)
import UIKit
#else
import WatchKit
#endif

public enum ApplicationPasswordUseCaseError: Error {
Expand Down Expand Up @@ -148,13 +150,16 @@ final public class DefaultApplicationPasswordUseCase: ApplicationPasswordUseCase
private extension DefaultApplicationPasswordUseCase {
/// Helper method to create password name from device
static func createPasswordName() -> String {
#if !os(watchOS)
let bundleIdentifier = Bundle.main.bundleIdentifier ?? "Unknown"
#if !os(watchOS)
let model = UIDevice.current.model
let identifierForVendor = UIDevice.current.identifierForVendor?.uuidString ?? ""
return "\(bundleIdentifier).ios-app-client.\(model).\(identifierForVendor)"
#else
fatalError("Unexpected error: Application password should not be generated through watch app")
let model = WKInterfaceDevice.current().model
let identifierForVendor =
WKInterfaceDevice.current().identifierForVendor?.uuidString ?? ""
return "\(bundleIdentifier).watch-app-client.\(model).\(identifierForVendor)"
#endif
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ final class ApplicationPasswordsExperimentAvailabilityChecker: ApplicationPasswo
func fetchAvailability() async -> Bool {
await withCheckedContinuation { continuation in
//TODO: - put the remote FF checking here
let mockResultValue = true
//For now rely on local FF for mocked value to avoid unwanted exposure
let mockResultValue = ServiceLocator.featureFlagService.isFeatureFlagEnabled(
.applicationPasswordExperiment
)

DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
continuation.resume(returning: mockResultValue)
Expand Down
6 changes: 0 additions & 6 deletions WooCommerce/Resources/ar.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9419,15 +9419,9 @@ which should be translated separately and considered part of this sentence. */
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "شهد إجمالي الطلبات تغييرًا منذ بداية الدفع. يرجى الرجوع والتحقق من أن الطلب صحيح، ثم محاولة الدفع مجددًا.";

/* Error message when the cash amount entered is less than the order total. */
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "يجب أن يكون المبلغ أكبر من الإجمالي أو يساويه.";

/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
"collectcashviewhelper.changedue" = "التغيير المستحق: %1$@";

/* Error message when the system fails to collect a cash payment. */
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "خطأ في أثناء محاولة معالجة المدفوعات. حاول مرة أخرى.";

/* Accessibility hint for selecting a product in the Add Product screen */
"configurationForBlaze.productRowAccessibilityHint" = "يُحدِّد المنتج لحملة Blaze.";

Expand Down
6 changes: 0 additions & 6 deletions WooCommerce/Resources/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "Die Gesamtbestellsumme hat sich seit Beginn deiner Zahlung geändert. Gehe zurück und überprüfe, ob deine Bestellung korrekt ist. Versuche dann erneut, die Zahlung vorzunehmen.";

/* Error message when the cash amount entered is less than the order total. */
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "Der Betrag muss größer oder gleich der Gesamtsumme sein.";

/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
"collectcashviewhelper.changedue" = "Fälliges Wechselgeld: %1$@";

/* Error message when the system fails to collect a cash payment. */
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Fehler beim Verarbeiten der Zahlung. Versuche es erneut.";

/* Accessibility hint for selecting a product in the Add Product screen */
"configurationForBlaze.productRowAccessibilityHint" = "Wählt ein Produkt für die Blaze-Kampagne aus.";

Expand Down
6 changes: 0 additions & 6 deletions WooCommerce/Resources/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "El total del pedido ha cambiado desde el inicio del pago. Vuelve y comprueba que el pedido sea correcto; después, vuelve a intentar el pago.";

/* Error message when the cash amount entered is less than the order total. */
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "El importe debe ser superior o igual al total.";

/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
"collectcashviewhelper.changedue" = "El cambio vence el %1$@";

/* Error message when the system fails to collect a cash payment. */
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Se ha producido un error al procesar el pago. Inténtalo de nuevo.";

/* Accessibility hint for selecting a product in the Add Product screen */
"configurationForBlaze.productRowAccessibilityHint" = "Selecciona el producto para la campaña Blaze.";

Expand Down
6 changes: 0 additions & 6 deletions WooCommerce/Resources/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "Le total de la commande a changé depuis l’initiation du paiement. Veuillez revenir en arrière, vérifier l’exactitude la commande puis retenter le paiement.";

/* Error message when the cash amount entered is less than the order total. */
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "Le montant doit être supérieur ou égal au total.";

/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
"collectcashviewhelper.changedue" = "Rendu : %1$@";

/* Error message when the system fails to collect a cash payment. */
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Erreur lors de la tentative de traitement du paiement. Veuillez réessayer.";

/* Accessibility hint for selecting a product in the Add Product screen */
"configurationForBlaze.productRowAccessibilityHint" = "Sélectionnez un produit pour la campagne Blaze.";

Expand Down
6 changes: 0 additions & 6 deletions WooCommerce/Resources/he.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "סך כל ההזמנה שונה מתחילת תהליך התשלום. יש לחזור אחורה ולוודא שפרטי ההזמנה נכונים ולנסות לשלם שוב.";

/* Error message when the cash amount entered is less than the order total. */
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "הסכום חייב להיות גדול או שווה לסך הכולל.";

/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
"collectcashviewhelper.changedue" = "העודף הנדרש: %1$@";

/* Error message when the system fails to collect a cash payment. */
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "שגיאה בניסיון לעבד את התשלום. יש לנסות שוב.";

/* Accessibility hint for selecting a product in the Add Product screen */
"configurationForBlaze.productRowAccessibilityHint" = "בוחר מוצר לקמפיין של Blaze.";

Expand Down
6 changes: 0 additions & 6 deletions WooCommerce/Resources/id.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9425,15 +9425,9 @@ which should be translated separately and considered part of this sentence. */
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "Total pesanan telah berubah sejak awal pembayaran. Silakan kembali dan periksa apakah pesanan sudah benar, lalu coba pembayaran lagi.";

/* Error message when the cash amount entered is less than the order total. */
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "Jumlah harus lebih dari atau sama dengan jumlah total.";

/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
"collectcashviewhelper.changedue" = "Kembalian terutang: %1$@";

/* Error message when the system fails to collect a cash payment. */
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Terjadi error saat memproses pembayaran. Coba lagi.";

/* Accessibility hint for selecting a product in the Add Product screen */
"configurationForBlaze.productRowAccessibilityHint" = "Pilih produk untuk kampanye Blaze.";

Expand Down
6 changes: 0 additions & 6 deletions WooCommerce/Resources/it.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "Il totale dell'ordine è cambiato dall'inizio del pagamento. Torna indietro e controlla che l'ordine sia corretto, quindi riprova il pagamento.";

/* Error message when the cash amount entered is less than the order total. */
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "L'importo deve essere maggiore o uguale al totale.";

/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
"collectcashviewhelper.changedue" = "Resto dovuto: %1$@";

/* Error message when the system fails to collect a cash payment. */
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Errore durante l'elaborazione del pagamento. Riprova.";

/* Accessibility hint for selecting a product in the Add Product screen */
"configurationForBlaze.productRowAccessibilityHint" = "Seleziona il prodotto per la campagna Blaze.";

Expand Down
6 changes: 0 additions & 6 deletions WooCommerce/Resources/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "支払い開始以降に注文合計額が変更されました。 戻って注文が正しいことを確認してから、もう一度お支払いをお試しください。";

/* Error message when the cash amount entered is less than the order total. */
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "金額は合計以上でなければなりません。";

/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
"collectcashviewhelper.changedue" = "変更期限: %1$@";

/* Error message when the system fails to collect a cash payment. */
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "支払いを処理しようとしたところ、エラーが発生しました。 もう一度お試しください。";

/* Accessibility hint for selecting a product in the Add Product screen */
"configurationForBlaze.productRowAccessibilityHint" = "Blaze キャンペーンの製品を選択します。";

Expand Down
6 changes: 0 additions & 6 deletions WooCommerce/Resources/ko.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "결제를 시작한 이후로 주문 총액이 변경되었습니다. 돌아가서 주문이 정확한지 확인하고 다시 결제를 시도해 주세요.";

/* Error message when the cash amount entered is less than the order total. */
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "금액은 총액 이상이어야 합니다.";

/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
"collectcashviewhelper.changedue" = "변경 기한: %1$@";

/* Error message when the system fails to collect a cash payment. */
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "결제 처리 시도 중 오류가 발생했습니다. 다시 시도하세요.";

/* Accessibility hint for selecting a product in the Add Product screen */
"configurationForBlaze.productRowAccessibilityHint" = "Blaze 캠페인용 상품을 선택합니다.";

Expand Down
6 changes: 0 additions & 6 deletions WooCommerce/Resources/nl.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9422,15 +9422,9 @@ which should be translated separately and considered part of this sentence. */
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "Het totale aantal bestellingen is veranderd sinds de start van het betaalproces. Ga terug en controleer of de bestelling juist is. Probeer daarna opnieuw te betalen.";

/* Error message when the cash amount entered is less than the order total. */
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "Bedrag moet groter dan of gelijk aan totaal zijn.";

/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
"collectcashviewhelper.changedue" = "Wijziging als gevolg van: %1$@";

/* Error message when the system fails to collect a cash payment. */
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Fout bij verwerken van betaling. Probeer het opnieuw.";

/* Accessibility hint for selecting a product in the Add Product screen */
"configurationForBlaze.productRowAccessibilityHint" = "Selecteert producten voor Blaze-campagne.";

Expand Down
6 changes: 0 additions & 6 deletions WooCommerce/Resources/pt-BR.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "O total do pedido mudou ao começar o pagamento. Volte e verifique se o pedido está correto. Depois tente fazer o pagamento de novo.";

/* Error message when the cash amount entered is less than the order total. */
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "O valor deve ser maior ou igual ao total.";

/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
"collectcashviewhelper.changedue" = "Troco: %1$@";

/* Error message when the system fails to collect a cash payment. */
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Erro ao tentar processar o pagamento. Tente novamente.";

/* Accessibility hint for selecting a product in the Add Product screen */
"configurationForBlaze.productRowAccessibilityHint" = "Seleciona o produto para uma campanha do Blaze.";

Expand Down
6 changes: 0 additions & 6 deletions WooCommerce/Resources/ru.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -9428,15 +9428,9 @@ which should be translated separately and considered part of this sentence. */
/* Error message when collecting an In-Person Payment and the order total has changed remotely. */
"collectOrderPaymentUseCase.error.message.orderTotalChanged" = "С момента начала оплаты изменилась общая сумма заказа. Вернитесь назад и проверьте сведения о заказе, а затем начните заново процесс оплаты.";

/* Error message when the cash amount entered is less than the order total. */
"collectcashviewhelper.cashpaymentamountnotenough.errormessage" = "Сумма должна быть больше итоговой суммы или равна ей.";

/* Change due when the cash amount entered exceeds the order total.Reads as 'Change due: $1.23' */
"collectcashviewhelper.changedue" = "Сумма сдачи: %1$@";

/* Error message when the system fails to collect a cash payment. */
"collectcashviewhelper.failedtocollectcashpayment.errormessage" = "Ошибка при попытке обработать платёж. Повторите попытку.";

/* Accessibility hint for selecting a product in the Add Product screen */
"configurationForBlaze.productRowAccessibilityHint" = "Отбирает товары для кампании Blaze.";

Expand Down
Loading
Loading