Draft order invoice checkouts (`/checkouts/do/`) emit no ECP messages — no `ec.start` / `ec.complete` in 4.0.0

Đang mở
#1,031 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, swift
Lĩnh vực
api, mobile

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.ready about 0.9 s after onPageStarted, then ec.start.
  • Draft order invoice (/<shop id>/invoices/<token> → /checkouts/do/…): Attaching ECP message transport and Adding protocol bridge, then onPageFinished, 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Shopify/checkout-kit

Tất cả issue của Shopify/checkout-kit

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.