@visa/cli 4.1.0-rc.103 → 4.1.0-rc.105
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.
|
@@ -63,6 +63,13 @@ export type CliReceiptFacts = {
|
|
|
63
63
|
source: 'mandate' | 'fresh-tap' | null;
|
|
64
64
|
/** Remaining mandate budget (minor units) after a mandate draw; else null. */
|
|
65
65
|
remainingMinor: number | null;
|
|
66
|
+
/**
|
|
67
|
+
* Immutable VIC/VGS intent used for server-side receipt correlation. This is
|
|
68
|
+
* an opaque non-credential identifier; it never carries the mint/verdict
|
|
69
|
+
* bearer that authorizes a cryptogram or confirmation. Present only after a
|
|
70
|
+
* card confirmation target exists.
|
|
71
|
+
*/
|
|
72
|
+
processorIntentId?: string | null;
|
|
66
73
|
};
|
|
67
74
|
export type CliStartMandateInput = {
|
|
68
75
|
/** Optional local card-capability selector (legacy name or exact request-key JKT). */
|
|
@@ -738,9 +738,12 @@ export function createCliCheckoutEngine(deps = {}) {
|
|
|
738
738
|
// (APPROVED/DECLINED). Only definitive submit answers post. Mirrors
|
|
739
739
|
// run-live-fill.ts.
|
|
740
740
|
let vicConfirmation = null;
|
|
741
|
+
let processorIntentId = null;
|
|
741
742
|
if (mode === 'submit') {
|
|
743
|
+
const confirmationTarget = instrument.confirmationTarget();
|
|
744
|
+
processorIntentId = confirmationTarget?.intentId ?? null;
|
|
742
745
|
vicConfirmation = await reportVicOutcome({
|
|
743
|
-
target:
|
|
746
|
+
target: confirmationTarget,
|
|
744
747
|
outcome: result.outcome,
|
|
745
748
|
transaction: {
|
|
746
749
|
transactionAmount: session.target.transactionAmount,
|
|
@@ -783,6 +786,7 @@ export function createCliCheckoutEngine(deps = {}) {
|
|
|
783
786
|
vicConfirmation,
|
|
784
787
|
source,
|
|
785
788
|
remainingMinor: drawnRemaining,
|
|
789
|
+
processorIntentId,
|
|
786
790
|
};
|
|
787
791
|
}
|
|
788
792
|
finally {
|