Trường · Replace Credit Card Symbols

Trường · Replace Credit Card Symbols · helpers.replaceCreditCardSymbols. Phương thức tạo · Ví dụ

helpers.replaceCreditCardSymbols

Cài đặt trình tạo

Tạo dữ liệu để xem kết quả ở đây.

Tham số & Ví dụ

Replaces the symbols and patterns in a credit card schema including Luhn checksum.

helpers.replaceCreditCardSymbols(string?: string, symbol?: string)
string
The credit card format pattern. Defaults to '6453-####-####-####-###L'.
symbol
The symbol to replace with a digit. Defaults to '#'.

Ví dụ

"0000-6160-6438-1177"

Dùng dữ liệu tổng hợp trong môi trường kiểm thử.

Trình tạo liên quan

Khám phá kịch bản