@@ -80,8 +80,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
8080 let cardPresentStore = CardPresentPaymentStore ( dispatcher: dispatcher,
8181 storageManager: storageManager,
8282 network: network,
83- cardReaderService: mockCardReaderService,
84- allowStripeIPP: false )
83+ cardReaderService: mockCardReaderService)
8584
8685 let action = CardPresentPaymentAction . startCardReaderDiscovery ( siteID: sampleSiteID, onReaderDiscovered: { _ in } , onError: { _ in } )
8786
@@ -94,8 +93,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
9493 let cardPresentStore = CardPresentPaymentStore ( dispatcher: dispatcher,
9594 storageManager: storageManager,
9695 network: network,
97- cardReaderService: mockCardReaderService,
98- allowStripeIPP: false )
96+ cardReaderService: mockCardReaderService)
9997
10098 let expectation = self . expectation ( description: " Readers discovered " )
10199
@@ -116,8 +114,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
116114 let cardPresentStore = CardPresentPaymentStore ( dispatcher: dispatcher,
117115 storageManager: storageManager,
118116 network: network,
119- cardReaderService: mockCardReaderService,
120- allowStripeIPP: false )
117+ cardReaderService: mockCardReaderService)
121118
122119 let action = CardPresentPaymentAction . startCardReaderDiscovery ( siteID: sampleSiteID, onReaderDiscovered: { _ in } , onError: { _ in } )
123120
@@ -139,8 +136,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
139136 let cardPresentStore = CardPresentPaymentStore ( dispatcher: dispatcher,
140137 storageManager: storageManager,
141138 network: network,
142- cardReaderService: mockCardReaderService,
143- allowStripeIPP: false )
139+ cardReaderService: mockCardReaderService)
144140
145141 network. simulateResponse ( requestUrlSuffix: " payments/connection_tokens " , filename: " generic_error " )
146142
@@ -164,8 +160,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
164160 let cardPresentStore = CardPresentPaymentStore ( dispatcher: dispatcher,
165161 storageManager: storageManager,
166162 network: network,
167- cardReaderService: mockCardReaderService,
168- allowStripeIPP: false )
163+ cardReaderService: mockCardReaderService)
169164
170165 let action = CardPresentPaymentAction . cancelCardReaderDiscovery { result in
171166 //
@@ -182,8 +177,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
182177 let cardPresentStore = CardPresentPaymentStore ( dispatcher: dispatcher,
183178 storageManager: storageManager,
184179 network: network,
185- cardReaderService: mockCardReaderService,
186- allowStripeIPP: false )
180+ cardReaderService: mockCardReaderService)
187181
188182 let expectation = self . expectation ( description: " Cancelling discovery published idle as discoveryStatus " )
189183
@@ -202,8 +196,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
202196 let cardPresentStore = CardPresentPaymentStore ( dispatcher: dispatcher,
203197 storageManager: storageManager,
204198 network: network,
205- cardReaderService: mockCardReaderService,
206- allowStripeIPP: false )
199+ cardReaderService: mockCardReaderService)
207200
208201 let expectation = self . expectation ( description: " Cancelling discovery changes discoveryStatus to idle " )
209202
@@ -227,8 +220,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
227220 let cardPresentStore = CardPresentPaymentStore ( dispatcher: dispatcher,
228221 storageManager: storageManager,
229222 network: network,
230- cardReaderService: mockCardReaderService,
231- allowStripeIPP: false )
223+ cardReaderService: mockCardReaderService)
232224
233225 let expectation = self . expectation ( description: " Connect to card reader " )
234226
@@ -253,8 +245,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
253245 let cardPresentStore = CardPresentPaymentStore ( dispatcher: dispatcher,
254246 storageManager: storageManager,
255247 network: network,
256- cardReaderService: mockCardReaderService,
257- allowStripeIPP: false )
248+ cardReaderService: mockCardReaderService)
258249
259250 let action = CardPresentPaymentAction . disconnect ( onCompletion: { result in
260251 //
@@ -271,8 +262,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
271262 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
272263 storageManager: storageManager,
273264 network: network,
274- cardReaderService: mockCardReaderService,
275- allowStripeIPP: false )
265+ cardReaderService: mockCardReaderService)
276266 let expectation = self . expectation ( description: " Load Account error response " )
277267 network. simulateResponse ( requestUrlSuffix: " payments/accounts " ,
278268 filename: " generic_error " )
@@ -296,8 +286,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
296286 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
297287 storageManager: storageManager,
298288 network: network,
299- cardReaderService: mockCardReaderService,
300- allowStripeIPP: false )
289+ cardReaderService: mockCardReaderService)
301290 let expectation = self . expectation ( description: " Load Account fetch response " )
302291 network. simulateResponse ( requestUrlSuffix: " payments/accounts " ,
303292 filename: " wcpay-account-complete " )
@@ -329,8 +318,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
329318 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
330319 storageManager: storageManager,
331320 network: network,
332- cardReaderService: mockCardReaderService,
333- allowStripeIPP: false )
321+ cardReaderService: mockCardReaderService)
334322 let expectation = self . expectation ( description: " Capture Payment Intent error response " )
335323 network. simulateResponse ( requestUrlSuffix: " payments/orders/ \( sampleOrderID) /capture_terminal_payment " , filename: " generic_error " )
336324 let action = CardPresentPaymentAction . captureOrderPayment ( siteID: sampleSiteID,
@@ -351,8 +339,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
351339 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
352340 storageManager: storageManager,
353341 network: network,
354- cardReaderService: mockCardReaderService,
355- allowStripeIPP: false )
342+ cardReaderService: mockCardReaderService)
356343 let expectation = self . expectation ( description: " Load Account fetch response " )
357344 network. simulateResponse ( requestUrlSuffix: " payments/orders/ \( sampleOrderID) /capture_terminal_payment " ,
358345 filename: " wcpay-payment-intent-succeeded " )
@@ -373,8 +360,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
373360 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
374361 storageManager: storageManager,
375362 network: network,
376- cardReaderService: mockCardReaderService,
377- allowStripeIPP: false )
363+ cardReaderService: mockCardReaderService)
378364 let expectation = self . expectation ( description: #function)
379365 network. simulateResponse ( requestUrlSuffix: " payments/orders/ \( sampleOrderID) /create_customer " ,
380366 filename: " wcpay-customer " )
@@ -397,8 +383,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
397383 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
398384 storageManager: storageManager,
399385 network: network,
400- cardReaderService: mockCardReaderService,
401- allowStripeIPP: false )
386+ cardReaderService: mockCardReaderService)
402387 let expectation = self . expectation ( description: #function)
403388 network. simulateResponse ( requestUrlSuffix: " payments/orders/ \( sampleOrderID) /create_customer " ,
404389 filename: " wcpay-customer-error " )
@@ -419,8 +404,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
419404 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
420405 storageManager: storageManager,
421406 network: network,
422- cardReaderService: mockCardReaderService,
423- allowStripeIPP: false )
407+ cardReaderService: mockCardReaderService)
424408
425409 network. simulateResponse ( requestUrlSuffix: " payments/charges/ \( sampleChargeID) " ,
426410 filename: " wcpay-charge-card-present " )
@@ -440,8 +424,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
440424 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
441425 storageManager: storageManager,
442426 network: network,
443- cardReaderService: mockCardReaderService,
444- allowStripeIPP: false )
427+ cardReaderService: mockCardReaderService)
445428
446429 network. simulateResponse ( requestUrlSuffix: " payments/charges/ \( sampleChargeID) " ,
447430 filename: " wcpay-charge-card-present " )
@@ -467,8 +450,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
467450 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
468451 storageManager: storageManager,
469452 network: network,
470- cardReaderService: mockCardReaderService,
471- allowStripeIPP: false )
453+ cardReaderService: mockCardReaderService)
472454
473455 network. simulateResponse ( requestUrlSuffix: " payments/charges/ \( sampleChargeID) " ,
474456 filename: " wcpay-charge-card-present " )
@@ -499,8 +481,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
499481 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
500482 storageManager: storageManager,
501483 network: network,
502- cardReaderService: mockCardReaderService,
503- allowStripeIPP: false )
484+ cardReaderService: mockCardReaderService)
504485
505486 network. simulateResponse ( requestUrlSuffix: " payments/charges/ \( sampleCardChargeID) " ,
506487 filename: " wcpay-charge-card " )
@@ -532,8 +513,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
532513 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
533514 storageManager: storageManager,
534515 network: network,
535- cardReaderService: mockCardReaderService,
536- allowStripeIPP: false )
516+ cardReaderService: mockCardReaderService)
537517
538518 network. simulateResponse ( requestUrlSuffix: " payments/charges/ \( sampleErrorChargeID) " ,
539519 filename: " wcpay-charge-error " )
@@ -560,8 +540,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
560540 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
561541 storageManager: storageManager,
562542 network: network,
563- cardReaderService: mockCardReaderService,
564- allowStripeIPP: false )
543+ cardReaderService: mockCardReaderService)
565544
566545 network. simulateResponse ( requestUrlSuffix: " payments/charges/ \( sampleErrorChargeID) " ,
567546 filename: " wcpay-charge-error " )
@@ -591,8 +570,7 @@ final class CardPresentPaymentStoreTests: XCTestCase {
591570 let store = CardPresentPaymentStore ( dispatcher: dispatcher,
592571 storageManager: storageManager,
593572 network: network,
594- cardReaderService: mockCardReaderService,
595- allowStripeIPP: false )
573+ cardReaderService: mockCardReaderService)
596574 network. simulateError ( requestUrlSuffix: " payments/charges/ \( sampleErrorChargeID) " ,
597575 error: DotcomError . unknown ( code: " beep " , message: " boop " ) )
598576
0 commit comments