Skip to content

2.0.0

Choose a tag to compare

@markmur markmur released this 21 Mar 10:25
· 149 commits to main since this release
f4e9308

What's Changed

Updated dependencies

New features

  1. The loading spinner has been replaced by a progress bar. This will result in a faster perceived load time since the SDK will no longer wait for full page load to show the DOM content.
  2. The "title" of the webview is now configurable via a Localizable.xcstrings file on iOS, a res/values/strings.xml on Android or using the title attribute on the ShopifyCheckoutSheetKit configuration object.

Important

The title configuration attribute will affect iOS only.

ShopifyCheckoutSheetKit.setConfig({
+ title: "Localized value"
})
  1. The completed event now returns details about the order, including the
    order ID:
- const checkoutCompletedSubscription = shopify.addEventListener('completed', () => {
+ const checkoutCompletedSubscription = shopify.addEventListener('completed', (event: CheckoutCompletedEvent) => {
+  console.log('[CheckoutCompletedEvent]', event.orderDetails.id);
});

Full Changelog: 1.0.5...2.0.0