Draft order invoice checkouts (`/checkouts/do/`) emit no ECP messages — no `ec.start` / `ec.complete` in 4.0.0
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
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.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.
- Lingua principale
- Swift
- Stelle
- 7
- Fork
- 6
- Merge medio
- 2g 18h
- PR unite (30g)
- 12
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Shopify/checkout-kit
-
Android 4.0.0: a way to handle or silence the checkout web view's console messagesForse già presa @markmur l’ha presa oggi. Aperta
Shopify/checkout-kit#1042 · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Shopify/checkout-kit
Issue simili
-
Optional callbacks log "Unable to create JSCallback" when passed nullForse già presa @cmsj l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
cmsj/Hammerspoon2#464 ·
-
android bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
VocaHQ/vocaphone#470 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
new-compilers request
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
compiler-explorer/compiler-explorer#9640 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100