Validate Bank Card Number (Luhn)

Checks the entered data for compliance with the format of the bank card number.

The analysis uses the Luhn algorithm.

Stream connectors

  • [Input] In - starts block execution.

  • [Output] Out - is activated when the block has finished executing.

Data connectors

  • [Input] card_number (string) - the value to check for compliance with the format. [

  • Output] is_valid (boolean) - if the value matches the format, it returns the value True, otherwise - False.

Last updated