File tree Expand file tree Collapse file tree 2 files changed +2
-22
lines changed
modules/@shopify/checkout-sheet-kit/ios
sample/android/app/src/test/java/com/shopify/checkoutkitreactnative Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -305,27 +305,6 @@ extension RCTCheckoutWebView: CheckoutDelegate {
305305 ] )
306306 }
307307
308- func checkoutDidRequestCardChange( event: CheckoutCardChangeRequested ) {
309- guard let id = event. id else { return }
310-
311- self . events. set ( key: id, event: event)
312-
313- var eventData : [ String : Any ] = [
314- " id " : event. id,
315- " type " : " paymentChangeIntent " ,
316- ]
317-
318- // Include current card info if available
319- if let currentCard = event. params. currentCard {
320- eventData [ " currentCard " ] = [
321- " last4 " : currentCard. last4,
322- " brand " : currentCard. brand,
323- ]
324- }
325-
326- onPaymentChangeIntent ? ( eventData)
327- }
328-
329308 /// Called when the buyer attempts to submit the checkout.
330309 ///
331310 /// This event is only emitted when native payment delegation is configured
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ public static Cart createTestCart(
7676 Collections .emptyList (), // discountCodes
7777 Collections .emptyList (), // appliedGiftCards
7878 Collections .emptyList (), // discountAllocations
79- delivery
79+ delivery ,
80+ Collections .emptyList () // paymentInstruments
8081 );
8182 }
8283
You can’t perform that action at this time.
0 commit comments