File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed
Hardware/Hardware/CardReader
WooCommerce/Classes/ViewRelated/Dashboard/Settings/In-Person Payments Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ public enum CardReaderType: CaseIterable {
77 case stripeM2
88 /// BBPOS WisePad 3
99 case wisepad3
10+ /// Tap on Mobile: Apple built in reader
11+ case appleBuiltIn
1012 /// Other
1113 case other
1214}
@@ -26,6 +28,8 @@ extension CardReaderType {
2628 return " STRIPE_M2 "
2729 case . wisepad3:
2830 return " WISEPAD_3 "
31+ case . appleBuiltIn:
32+ return " BUILT_IN "
2933 default :
3034 return " UNKNOWN "
3135 }
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ extension CardReaderType {
1313 return . stripeM2
1414 case . wisePad3:
1515 return . wisepad3
16+ case . appleBuiltIn:
17+ return appleBuiltIn
1618 default :
1719 return . other
1820 }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ extension CardReaderType {
2525 name: " Wisepad 3 " ,
2626 urlString: " https://stripe.com/files/docs/terminal/wp3_product_sheet.pdf "
2727 )
28- case . other:
28+ case . other, . appleBuiltIn :
2929 return nil
3030 }
3131 }
Original file line number Diff line number Diff line change @@ -153,7 +153,12 @@ private extension CardPresentPaymentStore {
153153 }
154154 } ,
155155 receiveValue: { readers in
156- let supportedReaders = readers. filter ( { $0. readerType == . chipper || $0. readerType == . stripeM2 || $0. readerType == . wisepad3} )
156+ let supportedReaders = readers. filter ( {
157+ $0. readerType == . chipper ||
158+ $0. readerType == . stripeM2 ||
159+ $0. readerType == . wisepad3 ||
160+ $0. readerType == . appleBuiltIn
161+ } )
157162 onReaderDiscovered ( supportedReaders)
158163 }
159164 ) )
You can’t perform that action at this time.
0 commit comments