Draft order invoice checkouts (`/checkouts/do/`) emit no ECP messages — no `ec.start` / `ec.complete` in 4.0.0
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by comparing the checkout bridge handling for cart URLs and draft order invoice URLs, then read the context around #190, which removed the legacy bridge. The report provides Android 4.0.0 logs but no source files or tests to start from. Done means establishing whether draft order checkouts should emit ECP messages and, if supported, ensuring completion callbacks work for them.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happens
We present a draft order's invoice_url (Admin API draftOrder.invoiceUrl) with Checkout Kit 4.0.0. It redirects to https://<shop>/checkouts/do/<token>/<locale>?…&ec_version=…&ec_delegate=…&ec_color_scheme=…. The checkout renders and the order can be paid, but the page never sends an ECP message: no ec.ready, no ec.start, no ec.complete. So onCheckoutCompleted / checkoutDidComplete never fire, and the only callback is onCheckoutDismissed when the buyer closes the sheet.
Comparison, same app, same SDK build, LogLevel.DEBUG (Android)
- Cart checkout (
/cart/c/<token>?key=…→/checkouts/cn/…):Received bridge message: method=ec.readyabout 0.9 s afteronPageStarted, thenec.start. - Draft order invoice (
/<shop id>/invoices/<token>→/checkouts/do/…):Attaching ECP message transportandAdding protocol bridge, thenonPageFinished, then nothing until dismissal.
Why it matters
Up to Checkout Sheet Kit 3.x the legacy bridge reported completion (and web pixels) for draft order checkouts. #190 removed the legacy bridge, so an app that checks out through draft orders has no completion signal at all in 4.x. We use draft orders because they carry store credit and discounts that a Storefront API cart can't express.
Question
Are draft order (invoice) checkouts meant to support ECP? If so, is it planned or behind a shop setting? If not, is there a recommended way to detect completion for them in 4.x?
Environment
- Checkout Kit Android 4.0.0 (
com.shopify:checkout-kit), Android 16 emulator, Android System WebView. - Swift 4.0.0 is not tested on our side yet.
- Storefront API 2026-07.
- Ngôn ngữ chính
- Swift
- Star
- 7
- Fork
- 6
- Merge trung bình
- 2 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Shopify/checkout-kit
-
Android 4.0.0: a way to handle or silence the checkout web view's console messagesCó thể đã có người làm @markmur đã nhận hôm nay. Đang mở
Shopify/checkout-kit#1042 · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Shopify/checkout-kit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
🎉 Add RemoteCrabĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
jaywcjlove/awesome-mac#4999 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Type] Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
wordpress-mobile/GutenbergKit#940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending-maintainer-response pending-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aws-amplify/amplify-swift#4423 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
erkamyaman/unslop-anything#80 ·
Maintainer thường phản hồi trong vòng 1 ngày