@visa/cli 4.1.0-rc.27 → 4.1.0-rc.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,6 +37,12 @@ export type CliReviewFacts = {
37
37
  export type CliPayInput = CliReviewInput & {
38
38
  reviewId: string;
39
39
  submit: boolean;
40
+ /**
41
+ * Headless handoff for this payment attempt. The MCP layer uses it to return
42
+ * the hosted passkey URL to a messaging surface while the engine continues
43
+ * waiting in-process.
44
+ */
45
+ onApprovalUrl?: (url: string) => void;
40
46
  };
41
47
  export type CliReceiptFacts = {
42
48
  outcome: string;
@@ -486,7 +486,7 @@ export function createCliCheckoutEngine(deps = {}) {
486
486
  tokenId: credential.tokenId,
487
487
  target: session.target,
488
488
  consumerEmail: session.contact.email,
489
- onApprovalUrl: deps.onApprovalUrl,
489
+ onApprovalUrl: input.onApprovalUrl ?? deps.onApprovalUrl,
490
490
  });
491
491
  // Server-side mint (Phase 1): the approval claim releases a scoped mint
492
492
  // token; the credential is minted by the verify-web deployment (which