3ds_cavvFinancial

Mock Jutsu HOW-TO | EN

The 3ds_cavv function in mock-jutsu is a specialized financial data generator designed to produce realistic Cardholder Authentication Verification Values for 3D Secure 2.0 protocols. In the complex world of online payment processing, having access to accurate mock data is critical for validating the handshake between merchants, acquirers, and issuers. This function provides a seamless way to generate the cryptographic strings required to simulate successful cardholder authentication during the checkout process, ensuring that developers can test their payment logic without needing a live banking environment.

Under the hood, the 3ds_cavv function adheres to the structural requirements defined by the EMVCo 3-D Secure specifications. A typical CAVV is a 20-byte or 28-byte value, usually represented as a Base64-encoded string, which contains essential metadata such as the Authentication Configuration ID and the merchant’s unique transaction identifier. By using mock-jutsu, developers can generate these values instantly, ensuring that their test data reflects the exact format and length expected by modern payment gateways and risk management engines.

Testing scenarios for the 3ds_cavv function are diverse, ranging from unit testing individual payment modules to performing large-scale load testing using the integrated JMeter plugin. Engineering teams can use this generated test data to verify that their systems correctly capture, store, and transmit the CAVV to downstream processors. This is particularly useful when simulating "Authentication Successful" outcomes where a valid cryptographic proof is mandatory to shift liability or qualify for lower interchange rates during credit card processing.

One of the primary benefits of using mock-jutsu for generating 3D Secure values is the significant reduction in development friction. Instead of relying on a live Access Control Server (ACS) or complex sandbox environments that may have rate limits, developers can use the Python API or the command-line interface to produce infinite variations of the 3ds_cavv. Whether you are automating a CI/CD pipeline or conducting manual API testing, this function ensures your financial applications remain robust, secure, and compliant with industry standards.

CLI Usage
mockjutsu generate 3ds_cavvmockjutsu bulk 3ds_cavv --count 10mockjutsu export 3ds_cavv --count 10 --format jsonmockjutsu export 3ds_cavv --count 10 --format csvmockjutsu export 3ds_cavv --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate 3ds_cavv --maskmockjutsu bulk 3ds_cavv --count 5 --mask
Python API
from mockjutsu import jutsujutsu.generate('3ds_cavv')jutsu.bulk('3ds_cavv', count=10)jutsu.template(['3ds_cavv'], count=5)# mask=True: regulation-compliant outputjutsu.generate('3ds_cavv', mask=True)jutsu.bulk('3ds_cavv', count=5, mask=True)
JMeter
${__mockjutsu_financial(3ds_cavv)}# JMeter Function: __mockjutsu_financial# Parameter 1: 3ds_cavv# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_financial(3ds_cavv,mask)}
REST API
GET /generate/3ds_cavv# → {"type":"3ds_cavv","result":"...","status":"ok"}GET /bulk/3ds_cavv?count=10POST /template {"types":["3ds_cavv"],"count":1}# mask=true: regulation-compliant outputGET /generate/3ds_cavv?mask=trueGET /bulk/3ds_cavv?count=5&mask=true

Parameters

Parameter Values Description
--mask true | false Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…)

Other Languages