File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
WooCommerce/Classes/ViewModels/CardPresentPayments Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ final class PaymentCaptureOrchestrator {
6060 }
6161 } ,
6262 onCompletion: { [ weak self] result in
63- onProcessingMessage ( )
6463 self ? . allowPassPresentation ( )
64+ onProcessingMessage ( )
6565 self ? . completePaymentIntentCapture (
6666 order: order,
6767 captureResult: result,
Original file line number Diff line number Diff line change @@ -185,16 +185,15 @@ private extension CardPresentPaymentStore {
185185
186186 cardReaderService. cancelPaymentIntent ( )
187187 . subscribe ( Subscribers . Sink ( receiveCompletion: { value in
188- switch value {
189- case . failure( let error) :
190- onCompletion ? ( . failure( error) )
191- case . finished:
192- break
193- }
194- } , receiveValue: {
195- onCompletion ? ( . success( ( ) ) )
196- } )
197- )
188+ switch value {
189+ case . failure( let error) :
190+ onCompletion ? ( . failure( error) )
191+ case . finished:
192+ break
193+ }
194+ } , receiveValue: {
195+ onCompletion ? ( . success( ( ) ) )
196+ } ) )
198197 }
199198
200199 func checkForCardReaderUpdate( onCompletion: @escaping ( Result < CardReaderSoftwareUpdate ? , Error > ) -> Void ) {
@@ -259,6 +258,7 @@ private extension CardPresentPaymentStore {
259258 }
260259}
261260
261+
262262/// Implementation of the CardReaderNetworkingAdapter
263263/// that fetches a token using WCPayRemote
264264private final class WCPayTokenProvider : CardReaderConfigProvider {
You can’t perform that action at this time.
0 commit comments