FILTER BY TAG

Client Version Changes

This topic lists client version updates for
Click to Pay
.

Client Version 0.10 (13 Aug 2026)

These changes apply to client version 0.10:
1. Mastercard FIDO/passkey authentication support
The SDK supports Fast IDentity Online (FIDO)/passkey authentication for Mastercard. FIDO/passkey authentication lets the cardholder authenticate with a device biometric or device PIN instead of entering a one-time password, which removes a step from checkout while still returning an authenticated payload. The existing integration supports this feature and introduces no new SDK methods.
Requesting an authenticated payload requires setting
authenticationPreferences.payloadRequested
to
AUTHENTICATED
inside
dpaTransactionOptions
, along with the acquirer and merchant identifiers used to construct the authentication request.
2. Summary payload type support
The SDK supports the
payloadTypeIndicatorCheckout
field, which controls how much data the checkout response returns. The field accepts
FULL
and
SUMMARY
. When you do not specify a value, the field defaults to
SUMMARY
.
"payloadTypeIndicatorCheckout": "SUMMARY"
Integrations that depend on the complete checkout payload require the value
FULL
. Because the field defaults to
SUMMARY
when omitted, response handling needs to account for the summary payload before adopting client version 0.10.
3. Accurate
bindingStatus
for Mastercard DCF-less checkout
Mastercard checkout that does not use a Digital Card Facilitator (DCF) returns the accurate
bindingStatus
value for each combination of user recognition and Remember Me consent. The SDK supports this internally; no integration code changes are required.
The SDK returns these
bindingStatus
values, based on user recognition and Remember Me consent:
  • Unrecognized user, no Remember Me:
    UNBIND
  • Unrecognized user, with
    REMEMBER_ME
    compliance:
    BIND
  • Recognized user:
    BIND

Client Version 0.9 (29 Jun 2026)

These changes apply to client version 0.9:
1. Multi-email session handling supported
The SDK verifies a newly entered email address or mobile number against the identifier associated with the existing
Click to Pay
cookie before it matches the identifier and retrieves the user's saved cards. If the identifiers do not match, the SDK navigates the user to the one-time password (OTP) verification flow instead of matching the session to the wrong identity. The SDK supports this internally.
2.
CHANGE_CARD
action code now supported without
SDK_NOT_INITIALIZED
errors
When
checkout()
returns
actionCode: 'CHANGE_CARD'
, the SDK no longer enters an inconsistent state. Previously, receiving
CHANGE_CARD
could cause the SDK to throw
SDK_NOT_INITIALIZED
on the next call, making the flow unrecoverable without a page reload. The SDK supports this internally; no integration code changes are required. Integrations can now add a
CHANGE_CARD
handler to their
checkout()
response switch; earlier versions could not do so reliably.
3.
dpaTransactionOptions
served from the backend for Mastercard DCF-less checkout
The merchant server returns
SERVER_INITIALIZE_OPTIONS
alongside the capture context in the same API response, as a separate field rather than embedded inside the capture context JWT. The client uses the capture context as the first argument to
initialize()
and
SERVER_INITIALIZE_OPTIONS
as the second argument. In client version 0.8, the server returned only the capture context, and the client had no server-owned initialize options to apply.
Now (v0.9):
const SERVER_INITIALIZE_OPTIONS = { dpaTransactionOptions: { customInputData: { // Suppress Mastercard's DCF overlay so checkout stays within the merchant page 'com.mastercard.dcfExperience': 'WITHIN_CHECKOUT' } } };
The client automatically applies the server-owned options as the default for
initialize()
.
IMPORTANT
Cybersource does not receive
dpaTransactionOptions
directly. The merchant server sends a request to
/uctp/v1/sessions
to obtain the capture context JWT from Cybersource, and that request does not include
dpaTransactionOptions
(Cybersource rejects the request if the field is present). Separately, the merchant server returns
SERVER_INITIALIZE_OPTIONS
to its client alongside the capture context, and the client passes it to
initialize()
locally.
4. Mastercard
3-D Secure
parity with Visa
The same
authenticationPreferences
structure that triggers
3-D Secure
for Visa also works for Mastercard. No integration code change is required for integrations that are already passing
authenticationPreferences
.
5.
dpaTransactionOptions
authentication configuration unified through session configuration
A single
dpaTransactionOptions
object returned from the server covers both Visa and Mastercard. Previously, authentication options had to be positioned differently depending on the network. The server structures and returns
SERVER_INITIALIZE_OPTIONS
, as described in item 3, and the client automatically applies it before
initialize()
is called.
6.
paymentCardDescriptor
added to
getCards()
card objects
The SDK now exposes
paymentCardDescriptor
as a top-level field on each card object in the
getCards()
response. This is an SDK-level change; the SDK now populates the field where it was previously absent. The sample code uses
paymentCardDescriptor
as the primary value, falling back to
digitalCardData.descriptorName
for backwards compatibility.
{{ card.paymentCardDescriptor || card.digitalCardData?.descriptorName || '' }}
7. Transaction amount and currency updates through
dpaTransactionOptions
You can update the transaction amount and currency after card selection through override support in
checkout()
.
transactionAmount: { transactionAmount: '21.00', transactionCurrencyCode: 'USD' },
8.
initialize()
returns void
Calling
initialize()
now resolves as void and does not return a meaningful value. In client version 0.8, the SDK returned a payload; code that inspects the return value of
initialize()
requires an update.
9.
SWITCH_CONSUMER
support
The SDK supports the
SWITCH_CONSUMER
action code:
checkout()
can return
actionCode: 'SWITCH_CONSUMER'
when the cardholder wants to check out under a different
Click to Pay
account. This is an SDK-level addition; integrations can add a
SWITCH_CONSUMER
case to their
checkout()
response switch to route the user back to email entry, and re-initializing the SDK is not required.
10. CPF (Brazilian tax ID) support
Brazilian merchants can include the cardholder's Cadastro de Pessoas Físicas (CPF) number to satisfy local regulatory requirements for consumer identification within the
Click to Pay
network. The guest card details model includes a generic
nationalIdentifier
field that can carry a CPF value. The SDK API reference documents the specific
consumerIdentity
field structure required to pass a CPF value.
nationalIdentifier?: string; // can carry CPF for Brazilian merchants
11.
assuranceData
in the decoded checkout response
The decoded checkout response includes an
assuranceData
object containing network-provided trust signals such as account score and card verification results. The restructured
processCheckoutResponse()
introduced in client version 0.8 (item 3) surfaces this field automatically by spreading the entire decoded JWS payload.

Client Version 0.8 (19 May 2026)

These changes apply to client version 0.8:
1. Consistent raw JWT handling supported
The raw JWT string is passed consistently across all internal SDK initialization paths, both the primary
initializeSdk()
path and the
reinitializeSdk()
path called after
unbindAppInstance()
. In client version 0.7, the decoded JWT object was passed in both paths, which caused the SDK to wrap it again internally and produce a double-wrapped token that the server could not decrypt. The Unified Checkout (UC) integration path is supported as of the 19 May 2026 release; the Flex integration path required a separate release and reached full support on 3 Jun 2026.
IMPORTANT
This behavior is supported automatically; no changes are required in your integration code. If you saw server-side decryption failures after
initialize()
, upgrading to client version 0.8 (UC) or the 3 Jun 2026 Flex release supports the corrected decryption flow.
2. OTP errors thrown instead of returned as an
ERROR
action code
When a user submits an incorrect, expired, or exhausted OTP, the SDK throws an error with a specific reason code rather than returning
actionCode: 'ERROR'
. This is an SDK-level behavioral change; the client-side error handling pattern of reading
error.reason
in a catch block was already in place.
The catch block handles OTP errors using
error.reason
, as shown in this example:
try { const result = await this.uctpService.verifyOtp(otp); this.handleGetCardsResponse(result); } catch (error: any) { const reason = error.reason || ''; if (reason === 'VALIDATION_DATA_INVALID') { this.setStatus('Invalid code. Please try again.', 'error'); } else if (reason === 'VALIDATION_DATA_EXPIRED') { this.setStatus('Code expired. Click "Resend Code" to get a new one.', 'error'); } else if (reason === 'RETRIES_EXCEEDED') { this.setStatus('Too many attempts. Please start over.', 'error'); } else { this.setStatus(`Verification failed: ${reason || error.message}`, 'error'); } }
3. Restructured checkout response
The shape of what
checkout()
returns changed from a raw JWT string to a response object containing a
checkoutResponse
JWS alongside
actionCode
and
bindingStatus
. The
processCheckoutResponse()
helper was rewritten to match, and the new structure surfaces all fields that were present in the legacy UCTP response.
Before (v0.7):
checkout()
returned a raw JWT string directly.
processCheckoutResponse()
performed a two-level nested JWT decode to extract the outer payload and inner credentials.
Now (v0.8):
checkout()
returns
{ checkoutResponse: JWS, actionCode, bindingStatus }
.
processCheckoutResponse()
decodes only the
checkoutResponse
JWS and spreads all other fields through.
4.
dpaPresentationName
for Mastercard
A
dpaPresentationName
field is available inside
dpaTransactionOptions
when calling
initialize()
. This field sets the merchant display name shown to cardholders within the Mastercard
Click to Pay
UI and applies to Mastercard flows only.
5. Mastercard
3-D Secure
support
The SDK supports
3-D Secure
for Mastercard, configured by passing
authenticationPreferences
inside
dpaTransactionOptions
during
checkout()
.
Now (v0.8):
authenticationPreferences: { authenticationMethods: [ { authenticationMethodType: '3DS', authenticationSubject: 'CARDHOLDER', methodAttributes: { challengeIndicator: '01' } } ], payloadRequested: 'AUTHENTICATED' },

Client Version 0.7 (5 May 2026)

These changes apply to client version 0.7:
1. initialize() takes the raw JWT string
The SDK accepts the undecoded JWT string and decodes it internally.
IMPORTANT
The SDK accepts only the raw JWT string; it rejects the decoded object.
Before (v0.6):
Integrators passed the decoded JWT object { header, payload, signature, raw } as the first argument.
Now (v0.7):
await vsdk.initialize(captureContextJwt, { // raw JWT string, not decoded dpaTransactionOptions: { /* ... */ } });
IMPORTANT
Decoding the JWT once is still necessary, but only to read payload.ctx[0].data.clientLibrary and clientLibraryIntegrity for loading the SDK <script>. That decoded object is not a valid initialize() argument.
2. getCards() no longer throws ERROR on the guest flow
If no
Click to Pay
account is found for the email (guest flow), getCards() resolves with actionCode: 'ADD_CARD' instead of throwing an error. ADD_CARD is handled as a normal actionCode branch, not inside a catch block.
Before (v0.6):
An "unknown email" lookup rejected the promise; you had to detect the guest flow inside a catch block.
Now (v0.7):
The promise resolves, and response.actionCode indicates which branch applies:
const res = await vsdk.getCards({ consumerIdentity }); switch (res.actionCode) { case 'SUCCESS': /* show saved cards */ break; case 'PENDING_CONSUMER_IDV': /* prompt for OTP */ break; case 'ADD_CARD': /* enter guest card-entry flow */ break; }
3. error.reason surfaced on initialize failures
If
initialize()
fails, the rejected error includes a
reason
property.