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

Aperta
#1,031 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, swift
Ambito
api, mobile

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Swift
Stelle
7
Fork
6
Merge medio
2g 18h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Shopify/checkout-kit

Tutte le issue di Shopify/checkout-kit

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.