Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
window.addEventListener('field-tokenization', (event) => {
        const result = event.detail;
        // result structure:
        {
            type: 'field-tokenization',
            fieldName: 'cardNumber' | 'cardCvv' | 'cardExpiry',
            success: boolean,
            message: string,
            paymentToken: string
        }

        if (!result.success) {
            showError('Failed to process card details.');
        }
});

See Also

https://netvalve.atlassian.net/wiki/spaces/950272/pages/edit-v2/147947686/