You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 50428df
Browse filesBrowse the repository at this point in the historyBrowse files
`amount` uses minor currency units, so `2306` means 23.06 usd. omitting `card_id` lets the cardholder select an enrolled card on the approval screen. to pin a card, request the wallet's advertised `payment_methods` expansion and set a returned id as `spec.card_id`.
422
425
426
+
`checkout_origin` is optional. set it to the checkout's canonical origin: an
427
+
HTTPS origin with a lowercase host, no default port, and no path (for example,
428
+
`https://shop.example.com`), or an HTTP `localhost` origin for local test
429
+
pages (for example, `http://localhost:3000`). For non-prepared checkout
430
+
authorizations, Kernel sends this caller-supplied origin to AgentCard for
431
+
cardholder autopilot rule matching. This origin match isn't payment approval
432
+
itself: an eligible autopilot rule can authorize the request, while an
433
+
ineligible rule can still fall back to user approval. If you omit the field,
434
+
the existing approval behavior remains. Prepared checkout uses the
435
+
`merchant_origin` from its preparation instead of this field. Card updates
436
+
replace the full `spec`, so include `checkout_origin` again when you want to
437
+
keep using it. An autopilot match doesn't guarantee processor acceptance or
438
+
payment success.
439
+
440
+
Kernel doesn't compare `checkout_origin` with the browser's current page. Your
441
+
application must derive or validate the origin from a trusted checkout context
442
+
and must not treat it as proof of the page's identity. Continue to verify the
443
+
merchant and purchase independently before checkout submission.
444
+
423
445
### Reuse a card item for a new purchase
424
446
425
447
`upsert` can retrieve an identical item, but it cannot replace the purchase
agentcard accepts amounts from 1–9007199254740991 and a three-letter `currency`. `merchant` accepts 1–120 printable characters without control characters. `card_id` uses the provider's `vc_` identifier, and wallet `user_id` uses its `usr_` identifier.
0 commit comments