Logo Search packages:      
Sourcecode: zope-emarket version File versions

check_cc.py

import ccc

def check_cc(self, ccnum, exp_mm, exp_yy):
    """
    check a credit card number....
    """

    check_status = 0
    msg = ''

    try:
        msg = ccc.check_card(ccnum, exp_mm, exp_yy)
        check_status = 1
    except RuntimeError, msg:
        check_status = 0

    return check_status, msg

Generated by  Doxygen 1.6.0   Back to index