expose fulfilment change in RN#350
Merged
Merged
Conversation
kiftio
force-pushed
the
dk/react-native-fulfilment-change
branch
from
June 26, 2026 14:48
ad1df6f to
836f6bd
Compare
kiftio
marked this pull request as ready for review
June 26, 2026 14:49
kiftio
marked this pull request as draft
June 26, 2026 14:49
Package Size
Measured from the PR base SHA and PR head SHA. This comment reports package artifact sizes only; it is not a final app binary-size report. |
kiftio
force-pushed
the
dk/react-native-fulfilment-change
branch
from
June 26, 2026 14:53
836f6bd to
e9f0f56
Compare
kiftio
force-pushed
the
dk/react-native-fulfilment-change
branch
from
June 26, 2026 14:57
e9f0f56 to
67beace
Compare
kiftio
marked this pull request as ready for review
June 26, 2026 14:58
Contributor
|
Nice, this might actually make #314 mostly redundant |
markmur
approved these changes
Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changes are you making?
Adds support for the
ec.fulfillment.changeprotocol event (fulfillmentChange) across the React Native platform and the TypeScript protocol layer.On the protocol side,
fulfillmentChangeis added to thegeneratedCheckoutProtocolmap, its payload type (Checkout) is registered inGeneratedCheckoutProtocolPayloads, and a corresponding decoder is wired up. It is then exposed as part of the publicCheckoutProtocolconstant alongside the existing events.On the React Native platform, the new event method is handled in both the iOS (
ProtocolRelay.swift) and Android (ProtocolRelay.kt) relay implementations so that fulfillment change events are forwarded to the JS event stream. The iOS relay also migrates fromCheckoutProtocolto the renamedEmbeddedCheckoutProtocol.Eventnamespace. The mock event type list and all relevant test suites are updated to cover the new event.Additionally, the
CheckoutandOrdermodels gain an optionalattributionfield ({ [key: string]: string }), and the verbose JSDoc comment onMessage.codeis removed.How to test
CheckoutProtocol.fulfillmentChangeevent in a React Native app using the checkout kit.Checkoutpayload (i.e.,checkout.idis a string).swift testin the module directory./gradlew testyarn testBefore you merge
Important
platforms/swift/README.mdand/orplatforms/android/README.md)Releasing a new Swift version?
ShopifyCheckoutKit.podspecplatforms/swift/Sources/ShopifyCheckoutKit/ShopifyCheckoutKit.swiftplatforms/swift/README.md(major version only)Releasing a new Embedded Checkout Protocol version?
embeddedCheckoutProtocolAndroidinplatforms/android/gradle/libs.versions.tomlprotocol/languages/kotlin/embedded-checkout-protocol/api/embedded-checkout-protocol.apiif the public API changedReleasing a new Android version?
checkoutKitAndroidinplatforms/android/gradle/libs.versions.tomlplatforms/android/README.mdTip
See the Contributing documentation for the full release process per platform.