Skip to content

Commit fe8d3cb

Browse files
fix: compilation errors on native level
1 parent 1ae3ceb commit fe8d3cb

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

modules/@shopify/checkout-sheet-kit/ios/RCTCheckoutWebView.swift

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff 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

sample/android/app/src/test/java/com/shopify/checkoutkitreactnative/TestFixtures.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)