|
10 | 10 | > production-ready. The current Checkout Kit for Android alpha is `4.0.0-alpha.2`. |
11 | 11 | > Stability is not guaranteed, and breaking changes may occur in any release. |
12 | 12 |
|
13 | | -**Checkout Kit for Android** lets Android apps present Shopify checkout in a native dialog while preserving store checkout customizations such as Checkout UI extensions, Shopify Functions, branding, and supported payment methods. |
| 13 | +**Checkout Kit for Android** lets Android apps present Shopify checkout in a native bottom sheet while preserving store checkout customizations such as Checkout UI extensions, Shopify Functions, branding, and supported payment methods. |
14 | 14 |
|
15 | 15 | > [!NOTE] |
16 | 16 | > This package was previously published as `com.shopify:checkout-sheet-kit`. New integrations should use `com.shopify:checkout-kit`. |
@@ -114,14 +114,14 @@ val listener = object : DefaultCheckoutListener() { |
114 | 114 | ShopifyCheckoutKit.present(checkoutUrl, activity, listener) |
115 | 115 | ``` |
116 | 116 |
|
117 | | -The `present` call returns a `CheckoutKitDialog?`. Keep it if you need to dismiss the dialog programmatically: |
| 117 | +The `present` call returns a `CheckoutHandle?`. Keep it if you need to dismiss checkout programmatically: |
118 | 118 |
|
119 | 119 | ```kotlin |
120 | | -val checkoutDialog = ShopifyCheckoutKit.present(checkoutUrl, activity) { |
| 120 | +val checkout = ShopifyCheckoutKit.present(checkoutUrl, activity) { |
121 | 121 | onCancel { resetCheckoutUi() } |
122 | 122 | } |
123 | 123 |
|
124 | | -checkoutDialog?.dismiss() |
| 124 | +checkout?.dismiss() |
125 | 125 | ``` |
126 | 126 |
|
127 | 127 | ## Preload checkout |
@@ -344,6 +344,10 @@ Checkout Kit opens external HTTPS links, `mailto:`, `tel:`, and custom-scheme li |
344 | 344 | ## Troubleshooting |
345 | 345 |
|
346 | 346 | - Use `LogLevel.DEBUG` while integrating. |
| 347 | +- For production release builds, use Android app shrinking and optimization |
| 348 | + when appropriate. Checkout Kit does not require integration-specific R8 rules |
| 349 | + for normal usage, and app-level shrinking can remove unused dependency code |
| 350 | + and resources. |
347 | 351 | - If checkout reports an expired, completed, or invalid cart, create a fresh cart and use its new `checkoutUrl`. |
348 | 352 | - If checkout cannot access camera, file upload, or location features, check your manifest permissions and runtime permission flow. |
349 | 353 | - If offsite payment redirects do not return to your app, verify App Links/deep link intent filters and domain association. |
|
0 commit comments