How to enable Mock Credit Card on a merchant.
Authiva enables automatically converting a customer's payment method into a tokenized tender, based on the requirements of the configured payment workflows. This enables merchants to securely store and reuse payment details in a tokenized format, supporting streamlined and compliant transaction processing. This mock product allows developers to simulate the credit card tokenization process without handling real card data or initiating actual transactions. It is ideal for testing integration logic, validating API interactions and webhook payloads, and ensuring system readiness before transitioning to a live tokenized credit card payment provider.
Features
✅ Create Customer A customer created within Authvia platform will be pushed to Mock.
✅ Tokenization Credit Card payment methods can be converted to Mock payment tokens.
✅ Auto Tokenize Can use features.auto-tokenize
to have all corresponding tender types auto converted to tokens. See tokenize for more details.
Configuration
No configuration is required.
Features
All tokenize products support the following features
attributes.
Name | Values | Description |
---|---|---|
auto-tokenize | true or false (default) | Can be provided for one tokenized product per payment method type (tender type). When set, any call to create a payment method for that underlying tender will automatically be converted to a token of the defined type. |
auto-permission | single-use or use (default) | Used to determine the permission to automatically set on each token created using this tokenization provider. Setting a value of single-use will mean a token is deleted on each successful use. |
Enabling this Product
Using create-merchant-product API you can add a new product to your merchant record. Below is an example configuration for the payload of that request.
{
"line": "tokenize",
"product": "creditcard",
"provider": "mock",
"config": {},
}