diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 4c8c0ae15d6..9f8ecb731e8 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -7,6 +7,7 @@ - [*] POS: icon button with confirmation step used for clearing the cart [https://github.com/woocommerce/woocommerce-ios/pull/15829] - [*] Shipping Labels: Fixed a portion of layout issues caused by bigger accessibility content size categories. [https://github.com/woocommerce/woocommerce-ios/pull/15844] - [*] Shipping Labels: Enable the confirm button on the payment method sheet even when there are no changes. [https://github.com/woocommerce/woocommerce-ios/pull/15856] +- [*] POS: start a new cart by scanning a barcode on the payment success screen [https://github.com/woocommerce/woocommerce-ios/pull/15870] - [*] Watch app: Fixed connection issue upon fresh install [https://github.com/woocommerce/woocommerce-ios/pull/15867] 22.7 diff --git a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSalePaymentSuccessView.swift b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSalePaymentSuccessView.swift index 7b0893d3a0e..c297644add8 100644 --- a/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSalePaymentSuccessView.swift +++ b/WooCommerce/Classes/POS/Presentation/CardReaderConnection/UI States/Reader Messages/PointOfSalePaymentSuccessView.swift @@ -4,6 +4,7 @@ import SwiftUI struct PointOfSalePaymentSuccessView: View { let viewModel: PointOfSalePaymentSuccessViewModel @Environment(\.dynamicTypeSize) var dynamicTypeSize + @Environment(PointOfSaleAggregateModel.self) private var posModel @State private var isShowingSendReceiptView: Bool = false @State private var isShowingReceiptNotEligibleBanner: Bool = false @@ -24,6 +25,10 @@ struct PointOfSalePaymentSuccessView: View { } .padding([.leading, .trailing], dynamicTypeSize.isAccessibilitySize ? nil : POSPadding.small) .background(Color.posSurfaceBright) + .barcodeScanning { barcode in + posModel.startNewCart() + posModel.barcodeScanned(barcode) + } } } .onAppear {