Skip to main content

All Questions

Tagged with
3 votes
3 answers
2k views

Simple credit card validation with Luhn's Algorithm

Originally written in C (which was abysmal, you may check here if you want), I rewrote my simple credit card validation program using Python ...
flamethrower10's user avatar
6 votes
2 answers
291 views

Asynchronous IBAN API with validation

I am working on an iban api which is about saving the iban of some members after (iban validation) in a database. The code is split between Domain (entities, behaviour for iban validation), Database ...
Natalie Perret's user avatar
3 votes
2 answers
2k views

Validating Card Number in Delphi

As part of processing card payments, before even attempting to process, I need to check and validate the card number to make sure it's valid. For this, I've encapsulated this validation in a record ...
Jerry Dodge's user avatar
12 votes
5 answers
6k views

Credit card validation

I started following Harvard's CS50 (Introduction to Computer Science) on edX, and as part of their Hacker edition set 1 was the following assignment: I am supposed to write a program (in C), that ...
Stefan Rendevski's user avatar
3 votes
1 answer
2k views

Calculate sales tax from tabular data

This is a Python 3 solution to the problem stated in Sales Tax Problem, rejected for not being up to their standards. It also seems like the same thing as the problem stated in Sales tax calculator, ...
shadowtalker's user avatar
2 votes
3 answers
224 views

ADT for a TVM calculator

I wanted to get some criticism for the below ADT. This is just a basic ADT that will be fed into a TVM calculator. Main purpose is to have it initialized and correct for input errors. Full disclosure:...
cnewb's user avatar
  • 83
4 votes
1 answer
2k views

Luhn algorithm MS-SQL

This a solution Luhn algorithm for credit validation. This algorithm is a basic one inspired by wikipedia. I mean no check for length, type, and so on. You can enhance the base code as you want it to ...
Modhaffer's user avatar
3 votes
1 answer
909 views

Haskell Luhn Algorithm

Trying to get to grips with Haskell. The problem is taken from here. ...
jb77's user avatar
  • 85
3 votes
2 answers
98 views

Removing synchronization from an agent for a trading system

Is there any way to easily remove synchronization from this code, when there is a validation step before acquiring a lock? I tried an ...
Wojtek's user avatar
  • 191
4 votes
2 answers
2k views

Credit card checking

I am practicing test-driven development in Python. Feedback about both the tests and the code is appreciated. I'm using luhn algorithm and regex to check credit card numbers for validity. Here are ...
mcgyver5's user avatar
  • 638
18 votes
3 answers
12k views

Credit card validator using Luhn's algorithm

I'm writing an algorithm to read from a file a list of numbers, and for each, determine if it is valid. If it is, then display which card type it is. ...
Ryan Dougherty's user avatar
7 votes
2 answers
24k views

Bank account number validation in IBAN format

I wrote a JavaScript function for validating bank account numbers in IBAN format for my own joy. Could you have a look if you don't see any obvious mistakes or places for improvement? ...
Grzegorz Piwowarek's user avatar
11 votes
3 answers
3k views

Bank card validation module

I hope that someone could review a module I wrote for bank card validation. I included a class that tests some of the methods, which is purely to show the methods work, rather than unit testing. ...
NRKirby's user avatar
  • 225
20 votes
3 answers
5k views

Credit card verification: string conversion most optimal?

Below is some code which verifies a credit card number using the checksum as well as check if number of digits are appropriate as well if digits start with right numbers. I am not sure if converting ...
Andy's user avatar
  • 583
3 votes
1 answer
181 views

Credit card validation with reversed array

I want a review of this code. ...
yasir ALQAISI's user avatar

15 30 50 per page