@agent-cards/sdk 0.23.4 → 0.23.6
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.
- package/CHANGELOG.md +6 -0
- package/PREFLIGHT.md +2 -0
- package/README.md +23 -8
- package/dist/card-endpoint-page.d.ts +5 -3
- package/dist/cdp.js +7 -2
- package/dist/cybersource-secure-acceptance.d.ts +78 -0
- package/dist/cybersource-secure-acceptance.js +214 -0
- package/dist/eprotect.d.ts +2 -2
- package/dist/eprotect.generated.d.ts +54 -15
- package/dist/eprotect.generated.js +256 -23
- package/dist/eprotect.js +5 -4
- package/dist/lifecycle.d.ts +6 -3
- package/dist/lifecycle.js +5 -2
- package/dist/pre-claim.d.ts +1 -0
- package/dist/pre-claim.js +76 -9
- package/dist/preflight-catalog.json +81 -0
- package/dist/preflight-schemas.json +6 -0
- package/dist/preflight.generated.js +21 -1
- package/examples/preflight/kernel-native/inventory.json +1 -1
- package/package.json +3 -3
|
@@ -2172,6 +2172,33 @@
|
|
|
2172
2172
|
"hostname_pattern": "^assets\\.braintreegateway\\.com$",
|
|
2173
2173
|
"pathname_pattern": "^\\/web\\/[0-9]+\\.[0-9]+\\.[0-9]+-payments-sdk(?:-[a-z]+)?\\/html\\/hosted-fields-(?:input-frame|payments-sdk-tokenization-frame)(?:\\.min)?\\.html$"
|
|
2174
2174
|
},
|
|
2175
|
+
{
|
|
2176
|
+
"id": "cybersource-secure-acceptance-silent-order-post",
|
|
2177
|
+
"psp": "cybersource_secure_acceptance",
|
|
2178
|
+
"kinds": [
|
|
2179
|
+
"form",
|
|
2180
|
+
"document",
|
|
2181
|
+
"frame",
|
|
2182
|
+
"iframe"
|
|
2183
|
+
],
|
|
2184
|
+
"origin": "https://secureacceptance.cybersource.com",
|
|
2185
|
+
"path_pattern": "/silent/*",
|
|
2186
|
+
"sources": [
|
|
2187
|
+
{
|
|
2188
|
+
"kind": "official_documentation",
|
|
2189
|
+
"reference": "https://developer.cybersource.com/docs/cybs/en-us/sa/developer/all/sa-checkout/secure-acceptance.html",
|
|
2190
|
+
"reviewed_on": "2026-10-08"
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
"kind": "saved_observation",
|
|
2194
|
+
"reference": "arrow-2026-10-08:secure-acceptance-silent-embedded-token-create-hidden-form",
|
|
2195
|
+
"reviewed_on": "2026-10-08"
|
|
2196
|
+
}
|
|
2197
|
+
],
|
|
2198
|
+
"variant_unverified": "CyberSource Secure Acceptance Silent Order POST sends the card from the merchant page to /silent/ on CyberSource's Secure Acceptance hosts; no Vault mode takes that request over.",
|
|
2199
|
+
"hostname_pattern": "^secureacceptance\\.cybersource\\.com$",
|
|
2200
|
+
"pathname_pattern": "^\\/silent\\/(?:[A-Za-z0-9_-]+\\/)*[A-Za-z0-9_-]+\\/?$"
|
|
2201
|
+
},
|
|
2175
2202
|
{
|
|
2176
2203
|
"id": "fiserv-commercehub-payment-fields",
|
|
2177
2204
|
"psp": "fiserv",
|
|
@@ -3432,6 +3459,60 @@
|
|
|
3432
3459
|
"hostname_pattern": "^testflex\\.cybersource\\.com$",
|
|
3433
3460
|
"pathname_pattern": "^\\/microform\\/bundle\\/v2\\.[0-9]+\\.[0-9]+\\/iframe\\.html$"
|
|
3434
3461
|
},
|
|
3462
|
+
{
|
|
3463
|
+
"id": "cybersource-secure-acceptance-silent-order-post-test",
|
|
3464
|
+
"psp": "cybersource_secure_acceptance",
|
|
3465
|
+
"kinds": [
|
|
3466
|
+
"form",
|
|
3467
|
+
"document",
|
|
3468
|
+
"frame",
|
|
3469
|
+
"iframe"
|
|
3470
|
+
],
|
|
3471
|
+
"origin": "https://testsecureacceptance.cybersource.com",
|
|
3472
|
+
"path_pattern": "/silent/*",
|
|
3473
|
+
"sources": [
|
|
3474
|
+
{
|
|
3475
|
+
"kind": "official_documentation",
|
|
3476
|
+
"reference": "https://developer.cybersource.com/docs/cybs/en-us/sa/developer/all/sa-checkout/secure-acceptance.html",
|
|
3477
|
+
"reviewed_on": "2026-10-08"
|
|
3478
|
+
},
|
|
3479
|
+
{
|
|
3480
|
+
"kind": "saved_observation",
|
|
3481
|
+
"reference": "arrow-2026-10-08:secure-acceptance-silent-embedded-token-create-hidden-form",
|
|
3482
|
+
"reviewed_on": "2026-10-08"
|
|
3483
|
+
}
|
|
3484
|
+
],
|
|
3485
|
+
"variant_unverified": "CyberSource Secure Acceptance Silent Order POST sends the card from the merchant page to /silent/ on CyberSource's Secure Acceptance hosts; no Vault mode takes that request over.",
|
|
3486
|
+
"hostname_pattern": "^testsecureacceptance\\.cybersource\\.com$",
|
|
3487
|
+
"pathname_pattern": "^\\/silent\\/(?:[A-Za-z0-9_-]+\\/)*[A-Za-z0-9_-]+\\/?$"
|
|
3488
|
+
},
|
|
3489
|
+
{
|
|
3490
|
+
"id": "cybersource-secure-acceptance-silent-order-post-in",
|
|
3491
|
+
"psp": "cybersource_secure_acceptance",
|
|
3492
|
+
"kinds": [
|
|
3493
|
+
"form",
|
|
3494
|
+
"document",
|
|
3495
|
+
"frame",
|
|
3496
|
+
"iframe"
|
|
3497
|
+
],
|
|
3498
|
+
"origin": "https://secureacceptance.in.cybersource.com",
|
|
3499
|
+
"path_pattern": "/silent/*",
|
|
3500
|
+
"sources": [
|
|
3501
|
+
{
|
|
3502
|
+
"kind": "official_documentation",
|
|
3503
|
+
"reference": "https://developer.cybersource.com/docs/cybs/en-us/sa/developer/all/sa-checkout/secure-acceptance.html",
|
|
3504
|
+
"reviewed_on": "2026-10-08"
|
|
3505
|
+
},
|
|
3506
|
+
{
|
|
3507
|
+
"kind": "saved_observation",
|
|
3508
|
+
"reference": "arrow-2026-10-08:secure-acceptance-silent-embedded-token-create-hidden-form",
|
|
3509
|
+
"reviewed_on": "2026-10-08"
|
|
3510
|
+
}
|
|
3511
|
+
],
|
|
3512
|
+
"variant_unverified": "CyberSource Secure Acceptance Silent Order POST sends the card from the merchant page to /silent/ on CyberSource's Secure Acceptance hosts; no Vault mode takes that request over.",
|
|
3513
|
+
"hostname_pattern": "^secureacceptance\\.in\\.cybersource\\.com$",
|
|
3514
|
+
"pathname_pattern": "^\\/silent\\/(?:[A-Za-z0-9_-]+\\/)*[A-Za-z0-9_-]+\\/?$"
|
|
3515
|
+
},
|
|
3435
3516
|
{
|
|
3436
3517
|
"id": "worldpay-eprotect-js-api-prelive",
|
|
3437
3518
|
"psp": "worldpay_eprotect",
|
|
@@ -469,6 +469,7 @@
|
|
|
469
469
|
"gravy-secure-fields-script",
|
|
470
470
|
"gravy-secure-fields-script-sandbox",
|
|
471
471
|
"paypal-hosted-fields-payments-sdk",
|
|
472
|
+
"cybersource-secure-acceptance-silent-order-post",
|
|
472
473
|
"fiserv-commercehub-payment-fields",
|
|
473
474
|
"fiserv-commercehub-checkout-script",
|
|
474
475
|
"fiserv-secure-data-capture-frame",
|
|
@@ -523,6 +524,8 @@
|
|
|
523
524
|
"gmo-link-hosted-page-test",
|
|
524
525
|
"cybersource-flex-microform-script-test",
|
|
525
526
|
"cybersource-flex-microform-field-test",
|
|
527
|
+
"cybersource-secure-acceptance-silent-order-post-test",
|
|
528
|
+
"cybersource-secure-acceptance-silent-order-post-in",
|
|
526
529
|
"worldpay-eprotect-js-api-prelive",
|
|
527
530
|
"worldpay-eprotect-iframe-client-prelive",
|
|
528
531
|
"worldpay-eprotect-payframe-prelive",
|
|
@@ -1100,6 +1103,7 @@
|
|
|
1100
1103
|
"gravy-secure-fields-script",
|
|
1101
1104
|
"gravy-secure-fields-script-sandbox",
|
|
1102
1105
|
"paypal-hosted-fields-payments-sdk",
|
|
1106
|
+
"cybersource-secure-acceptance-silent-order-post",
|
|
1103
1107
|
"fiserv-commercehub-payment-fields",
|
|
1104
1108
|
"fiserv-commercehub-checkout-script",
|
|
1105
1109
|
"fiserv-secure-data-capture-frame",
|
|
@@ -1154,6 +1158,8 @@
|
|
|
1154
1158
|
"gmo-link-hosted-page-test",
|
|
1155
1159
|
"cybersource-flex-microform-script-test",
|
|
1156
1160
|
"cybersource-flex-microform-field-test",
|
|
1161
|
+
"cybersource-secure-acceptance-silent-order-post-test",
|
|
1162
|
+
"cybersource-secure-acceptance-silent-order-post-in",
|
|
1157
1163
|
"worldpay-eprotect-js-api-prelive",
|
|
1158
1164
|
"worldpay-eprotect-iframe-client-prelive",
|
|
1159
1165
|
"worldpay-eprotect-payframe-prelive",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated from @agent-cards/payment-core. Do not edit.
|
|
2
|
-
// source-sha256:
|
|
2
|
+
// source-sha256: fc24e6cb50ab112c3a15983c461185a9189bd0cf8c5e1ceb73e8432e6eebc37f
|
|
3
3
|
import { CHECKOUT_PREFLIGHT_CAPABILITIES } from './preflight-capabilities.generated.js';
|
|
4
4
|
/** Advisory page discovery. These rules never admit a payment destination. */
|
|
5
5
|
export const CHECKOUT_PREFLIGHT_VERSION = '1';
|
|
@@ -79,6 +79,23 @@ RULES.push({ id: 'paypal-hosted-fields-payments-sdk', psp: 'paypal', kinds: ['fr
|
|
|
79
79
|
paypalHostedFieldsSource('https://www.paypal.com/sdk/js?components=hosted-fields'),
|
|
80
80
|
{ kind: 'saved_observation', reference: 'planet-golf-uk-2026-10-06:paypal-hosted-fields-payments-sdk-frames', reviewed_on: '2026-10-07' }],
|
|
81
81
|
variant_unverified: 'PayPal legacy Hosted Fields frames send the card to the Orders v2 confirm-payment-source on cors.api.paypal.com; no Vault mode takes that request over.' });
|
|
82
|
+
// CyberSource Secure Acceptance's Silent Order POST (the Secure Acceptance Checkout API), reviewed 2026-10-08 from
|
|
83
|
+
// CyberSource's endpoint table and Arrow Electronics' public bundles (no card was sent). The merchant's own page
|
|
84
|
+
// posts the card fields, unsigned, beside the fields its server signed, to a /silent/ path on CyberSource's Secure
|
|
85
|
+
// Acceptance hosts: production, test (testsecureacceptance) and production in India (secureacceptance.in), below.
|
|
86
|
+
// Arrow submits that form into a hidden iframe; a merchant can also post it as the page's own form. No Vault mode
|
|
87
|
+
// takes that post over, and the checkout SDK stops it (checkout/src/cybersource-secure-acceptance.ts). So the form,
|
|
88
|
+
// and a frame or document on a /silent/ path, name cybersource_secure_acceptance and the result stays unknown
|
|
89
|
+
// through `variant_unverified`. Hosted Checkout, the same hosts without /silent/, takes the card on CyberSource's
|
|
90
|
+
// own page and is not named here.
|
|
91
|
+
const secureAcceptanceSources = [
|
|
92
|
+
{ kind: 'official_documentation', reference: 'https://developer.cybersource.com/docs/cybs/en-us/sa/developer/all/sa-checkout/secure-acceptance.html', reviewed_on: '2026-10-08' },
|
|
93
|
+
{ kind: 'saved_observation', reference: 'arrow-2026-10-08:secure-acceptance-silent-embedded-token-create-hidden-form', reviewed_on: '2026-10-08' },
|
|
94
|
+
];
|
|
95
|
+
RULES.push({ id: 'cybersource-secure-acceptance-silent-order-post', psp: 'cybersource_secure_acceptance', kinds: ['form', 'document', 'frame', 'iframe'],
|
|
96
|
+
hostname: /^secureacceptance\.cybersource\.com$/, pathname: /^\/silent\/(?:[A-Za-z0-9_-]+\/)*[A-Za-z0-9_-]+\/?$/,
|
|
97
|
+
origin: 'https://secureacceptance.cybersource.com', path_pattern: '/silent/*', sources: secureAcceptanceSources,
|
|
98
|
+
variant_unverified: 'CyberSource Secure Acceptance Silent Order POST sends the card from the merchant page to /silent/ on CyberSource\'s Secure Acceptance hosts; no Vault mode takes that request over.' });
|
|
82
99
|
// Fiserv Commerce Hub, read 2026-09-23 from Home Depot's OrangePay frame and Fiserv's
|
|
83
100
|
// docs: payment-fields.js renders one Secure Data Capture iframe per card field, and
|
|
84
101
|
// the Checkout JS SDK is Commerce Hub's other browser entry. Fiserv ships dark (its
|
|
@@ -310,6 +327,9 @@ for (const [baseId, suffix, hostname, origin] of [
|
|
|
310
327
|
['gmo-link-hosted-page', 'test', /^pt01\.mul-pay\.jp$/, 'https://pt01.mul-pay.jp'],
|
|
311
328
|
['cybersource-flex-microform-script', 'test', /^testflex\.cybersource\.com$/, 'https://testflex.cybersource.com'],
|
|
312
329
|
['cybersource-flex-microform-field', 'test', /^testflex\.cybersource\.com$/, 'https://testflex.cybersource.com'],
|
|
330
|
+
// Secure Acceptance's test host and its production host in India serve the same /silent/ paths.
|
|
331
|
+
['cybersource-secure-acceptance-silent-order-post', 'test', /^testsecureacceptance\.cybersource\.com$/, 'https://testsecureacceptance.cybersource.com'],
|
|
332
|
+
['cybersource-secure-acceptance-silent-order-post', 'in', /^secureacceptance\.in\.cybersource\.com$/, 'https://secureacceptance.in.cybersource.com'],
|
|
313
333
|
['worldpay-eprotect-js-api', 'prelive', /^request\.eprotect\.vantivprelive\.com$/, 'https://request.eprotect.vantivprelive.com'],
|
|
314
334
|
['worldpay-eprotect-iframe-client', 'prelive', /^request\.eprotect\.vantivprelive\.com$/, 'https://request.eprotect.vantivprelive.com'],
|
|
315
335
|
['worldpay-eprotect-payframe', 'prelive', /^request\.eprotect\.vantivprelive\.com$/, 'https://request.eprotect.vantivprelive.com'],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
3
|
"catalog_version": "2026-09-15.1",
|
|
4
|
-
"catalog_sha256": "
|
|
4
|
+
"catalog_sha256": "a1bfa3f9da2942711afca14cfc7158a49274869c66e685abc0d36839d2e96454",
|
|
5
5
|
"baseline_version": "kernel-native-docs-2026-09-11.1",
|
|
6
6
|
"baseline_sha256": "d86722f49633d8223fccae54cd3d485df4375aee06aa156a273cc689b7c8507c",
|
|
7
7
|
"native_build": null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-cards/sdk",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.6",
|
|
4
4
|
"description": "Agentcard's SDK: one client, Agentcard, with two modules. checkout pauses a browser purchase and pays it with the person's own card; voice connects a person to your product once and approves a purchase by voice inside it. Card data never enters your process.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"_comment_build": "The public SDK keeps zero runtime dependencies. Its build vendors deterministic metadata and substitution artifacts from the internal payment core, and the voice streaming door from packages/voice/src/core (the phone package, @agent-cards/voice, ships it to phones); TypeScript remains pinned.",
|
|
28
28
|
"build": "node ../payment-core/scripts/build.mjs && node scripts/generate-payment-core.mjs && node scripts/generate-voice-stream.mjs && npx -y -p typescript@5.9.3 tsc && node scripts/generate-preflight-contract.mjs",
|
|
29
29
|
"prepublishOnly": "pnpm build",
|
|
30
|
-
"test": "node test.mjs && node --test lifecycle.test.mjs merchant-abort.test.mjs preparation.test.mjs braintree.test.mjs pre-claim.test.mjs ekashu.test.mjs paypal-hosted-fields.test.mjs autopilot.test.mjs stripe-checkout.test.mjs stripe-setup.test.mjs stripe-legacy-checkout.test.mjs payment-core.test.mjs prepared-processor.test.mjs merchant-hosted.test.mjs merchant-total.test.mjs sandbox-declaration.test.mjs minimum-delay.test.mjs paysafe.test.mjs payu.test.mjs attachment.test.mjs worker-targets.test.mjs mercado-checkout.test.mjs mercado-polling.test.mjs amadeus.test.mjs pelecard.test.mjs aci.test.mjs primer.test.mjs payrails.test.mjs elavon-converge.test.mjs voice.test.mjs agentcard.test.mjs buy.test.mjs readme.test.mjs gmo.test.mjs cybersource-flex.test.mjs juspay-gate.test.mjs card-endpoint.test.mjs card-endpoint-fastspring.test.mjs card-endpoint-navigation.test.mjs merchant-session-probe.test.mjs datatrans.test.mjs authorize-net-dpm.test.mjs creditguard.test.mjs eprotect.test.mjs wspay.test.mjs shiji-sts.test.mjs worldline-mycheckout.test.mjs verifone.test.mjs && node --test preflight-package.test.mjs preflight-collector.test.mjs && node --test kernel-native-qualification.test.mjs && node --test ../vault/scripts/recurly-validation/watch-duty-sdk-result.test.mjs",
|
|
31
|
-
"test:browser": "node browser.test.mjs && node stripe-browser.test.mjs && node preparation-browser.test.mjs && node checkout-com-browser.test.mjs && node paysafe-preparation-browser.test.mjs && node owned-shop-browser.test.mjs && node spreedly-browser.test.mjs && node worker-browser.test.mjs && node amadeus-browser.test.mjs && node adyen-merchant-hosted-browser.test.mjs && node adyen-merchant-frames-browser.test.mjs && node fiserv-browser.test.mjs && node gmo-browser.test.mjs && node cybersource-flex-browser.test.mjs && node juspay-browser.test.mjs && node card-endpoint-browser.test.mjs && node datatrans-browser.test.mjs && node authorize-net-dpm-browser.test.mjs && node pelecard-browser.test.mjs && node aci-browser.test.mjs && node creditguard-browser.test.mjs && node primer-browser.test.mjs && node payrails-browser.test.mjs && node elavon-converge-browser.test.mjs && node eprotect-browser.test.mjs && node wspay-browser.test.mjs && node shiji-sts-browser.test.mjs && node worldline-mycheckout-browser.test.mjs && node paypal-hosted-fields-browser.test.mjs",
|
|
30
|
+
"test": "node test.mjs && node --test lifecycle.test.mjs merchant-abort.test.mjs preparation.test.mjs braintree.test.mjs pre-claim.test.mjs ekashu.test.mjs paypal-hosted-fields.test.mjs cybersource-secure-acceptance.test.mjs autopilot.test.mjs stripe-checkout.test.mjs stripe-setup.test.mjs stripe-legacy-checkout.test.mjs payment-core.test.mjs prepared-processor.test.mjs merchant-hosted.test.mjs merchant-total.test.mjs sandbox-declaration.test.mjs minimum-delay.test.mjs paysafe.test.mjs payu.test.mjs attachment.test.mjs worker-targets.test.mjs mercado-checkout.test.mjs mercado-polling.test.mjs amadeus.test.mjs pelecard.test.mjs aci.test.mjs primer.test.mjs payrails.test.mjs elavon-converge.test.mjs voice.test.mjs agentcard.test.mjs buy.test.mjs readme.test.mjs gmo.test.mjs cybersource-flex.test.mjs juspay-gate.test.mjs card-endpoint.test.mjs card-endpoint-fastspring.test.mjs card-endpoint-navigation.test.mjs merchant-session-probe.test.mjs datatrans.test.mjs authorize-net-dpm.test.mjs creditguard.test.mjs eprotect.test.mjs wspay.test.mjs shiji-sts.test.mjs worldline-mycheckout.test.mjs verifone.test.mjs && node --test preflight-package.test.mjs preflight-collector.test.mjs && node --test kernel-native-qualification.test.mjs && node --test ../vault/scripts/recurly-validation/watch-duty-sdk-result.test.mjs",
|
|
31
|
+
"test:browser": "node browser.test.mjs && node stripe-browser.test.mjs && node preparation-browser.test.mjs && node checkout-com-browser.test.mjs && node paysafe-preparation-browser.test.mjs && node owned-shop-browser.test.mjs && node spreedly-browser.test.mjs && node worker-browser.test.mjs && node amadeus-browser.test.mjs && node adyen-merchant-hosted-browser.test.mjs && node adyen-merchant-frames-browser.test.mjs && node fiserv-browser.test.mjs && node gmo-browser.test.mjs && node cybersource-flex-browser.test.mjs && node juspay-browser.test.mjs && node card-endpoint-browser.test.mjs && node datatrans-browser.test.mjs && node authorize-net-dpm-browser.test.mjs && node pelecard-browser.test.mjs && node aci-browser.test.mjs && node creditguard-browser.test.mjs && node primer-browser.test.mjs && node payrails-browser.test.mjs && node elavon-converge-browser.test.mjs && node eprotect-browser.test.mjs && node wspay-browser.test.mjs && node shiji-sts-browser.test.mjs && node worldline-mycheckout-browser.test.mjs && node paypal-hosted-fields-browser.test.mjs && node cybersource-secure-acceptance-browser.test.mjs",
|
|
32
32
|
"check:payment-core": "node scripts/generate-payment-core.mjs --check",
|
|
33
33
|
"check:voice-stream": "node scripts/generate-voice-stream.mjs --check",
|
|
34
34
|
"test:preflight": "node --test preflight-package.test.mjs preflight-collector.test.mjs kernel-native-qualification.test.mjs",
|