On This Page
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 settingauthenticationPreferences.payloadRequestedtoAUTHENTICATEDinsidedpaTransactionOptions, along with the acquirer and merchant identifiers used to construct the authentication request.
- 2. Summary payload type support
- The SDK supports thepayloadTypeIndicatorCheckoutfield, which controls how much data the checkout response returns. The field acceptsFULLandSUMMARY. When you do not specify a value, the field defaults toSUMMARY."payloadTypeIndicatorCheckout": "SUMMARY"Integrations that depend on the complete checkout payload require the valueFULL. Because the field defaults toSUMMARYwhen omitted, response handling needs to account for the summary payload before adopting client version 0.10.
- 3. AccuratebindingStatusfor Mastercard DCF-less checkout
- Mastercard checkout that does not use a Digital Card Facilitator (DCF) returns the accuratebindingStatusvalue for each combination of user recognition and Remember Me consent. The SDK supports this internally; no integration code changes are required.The SDK returns thesebindingStatusvalues, based on user recognition and Remember Me consent:
- Unrecognized user, no Remember Me:UNBIND
- Unrecognized user, withREMEMBER_MEcompliance: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 existingClick to Paycookie 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_CARDaction code now supported withoutSDK_NOT_INITIALIZEDerrors
- Whencheckout()returnsactionCode: 'CHANGE_CARD', the SDK no longer enters an inconsistent state. Previously, receivingCHANGE_CARDcould cause the SDK to throwSDK_NOT_INITIALIZEDon 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 aCHANGE_CARDhandler to theircheckout()response switch; earlier versions could not do so reliably.
- 3.dpaTransactionOptionsserved from the backend for Mastercard DCF-less checkout
- The merchant server returnsSERVER_INITIALIZE_OPTIONSalongside 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 toinitialize()andSERVER_INITIALIZE_OPTIONSas 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 forinitialize().IMPORTANTCybersource does not receivedpaTransactionOptionsdirectly. The merchant server sends a request to/uctp/v1/sessionsto obtain the capture context JWT from Cybersource, and that request does not includedpaTransactionOptions(Cybersource rejects the request if the field is present). Separately, the merchant server returnsSERVER_INITIALIZE_OPTIONSto its client alongside the capture context, and the client passes it toinitialize()locally.
- 4. Mastercard3-D Secureparity with Visa
- The sameauthenticationPreferencesstructure that triggers3-D Securefor Visa also works for Mastercard. No integration code change is required for integrations that are already passingauthenticationPreferences.
- 5.dpaTransactionOptionsauthentication configuration unified through session configuration
- A singledpaTransactionOptionsobject 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 returnsSERVER_INITIALIZE_OPTIONS, as described in item 3, and the client automatically applies it beforeinitialize()is called.
- 6.paymentCardDescriptoradded togetCards()card objects
- The SDK now exposespaymentCardDescriptoras a top-level field on each card object in thegetCards()response. This is an SDK-level change; the SDK now populates the field where it was previously absent. The sample code usespaymentCardDescriptoras the primary value, falling back todigitalCardData.descriptorNamefor backwards compatibility.{{ card.paymentCardDescriptor || card.digitalCardData?.descriptorName || '' }}
- 7. Transaction amount and currency updates throughdpaTransactionOptions
- You can update the transaction amount and currency after card selection through override support incheckout().transactionAmount: { transactionAmount: '21.00', transactionCurrencyCode: 'USD' },
- 8.initialize()returns void
- Callinginitialize()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 ofinitialize()requires an update.
- 9.SWITCH_CONSUMERsupport
- The SDK supports theSWITCH_CONSUMERaction code:checkout()can returnactionCode: 'SWITCH_CONSUMER'when the cardholder wants to check out under a differentClick to Payaccount. This is an SDK-level addition; integrations can add aSWITCH_CONSUMERcase to theircheckout()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 theClick to Paynetwork. The guest card details model includes a genericnationalIdentifierfield that can carry a CPF value. The SDK API reference documents the specificconsumerIdentityfield structure required to pass a CPF value.nationalIdentifier?: string; // can carry CPF for Brazilian merchants
- 11.assuranceDatain the decoded checkout response
- The decoded checkout response includes anassuranceDataobject containing network-provided trust signals such as account score and card verification results. The restructuredprocessCheckoutResponse()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 primaryinitializeSdk()path and thereinitializeSdk()path called afterunbindAppInstance(). 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.IMPORTANTThis behavior is supported automatically; no changes are required in your integration code. If you saw server-side decryption failures afterinitialize(), 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 anERRORaction code
- When a user submits an incorrect, expired, or exhausted OTP, the SDK throws an error with a specific reason code rather than returningactionCode: 'ERROR'. This is an SDK-level behavioral change; the client-side error handling pattern of readingerror.reasonin a catch block was already in place.The catch block handles OTP errors usingerror.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 whatcheckout()returns changed from a raw JWT string to a response object containing acheckoutResponseJWS alongsideactionCodeandbindingStatus. TheprocessCheckoutResponse()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 thecheckoutResponseJWS and spreads all other fields through.
- 4.dpaPresentationNamefor Mastercard
- AdpaPresentationNamefield is available insidedpaTransactionOptionswhen callinginitialize(). This field sets the merchant display name shown to cardholders within the MastercardClick to PayUI and applies to Mastercard flows only.
- 5. Mastercard3-D Securesupport
- The SDK supports3-D Securefor Mastercard, configured by passingauthenticationPreferencesinsidedpaTransactionOptionsduringcheckout().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.IMPORTANTThe 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: { /* ... */ } });IMPORTANTDecoding 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 noClick to Payaccount 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
- Ifinitialize()fails, the rejected error includes areasonproperty.