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
feat: add required_fields to available payment instruments
Enable payment handlers to declare which optional fields they require
for payment processing via a new `required_fields` property on
`available_payment_instrument.json`. Uses dot notation for nested
properties (e.g., `credential.cvc`, `billing_address.postal_code`).
This eliminates guesswork for agentic platforms — they can collect
exactly the right fields before attempting tokenization, avoiding
trial-and-error retries and unnecessary over-collection of buyer data.
Copy file name to clipboardExpand all lines: source/schemas/shopping/types/available_payment_instrument.json
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,15 @@
15
15
"additionalProperties": true,
16
16
"description": "Constraints on this instrument type. Structure depends on instrument type and active capabilities.",
17
17
"minProperties": 1
18
+
},
19
+
"required_fields": {
20
+
"type": "array",
21
+
"items": {
22
+
"type": "string"
23
+
},
24
+
"description": "Optional fields from the instrument or credential schemas that this handler requires for payment processing. Uses dot notation for nested properties: credential fields use 'credential.' prefix (e.g., 'credential.cvc', 'credential.name'), billing address subfields use 'billing_address.' prefix (e.g., 'billing_address.postal_code'). Top-level instrument fields use their property name directly (e.g., 'billing_address' for the full object).",
0 commit comments