Exemplo n.º 1
0
def if_card():
    print("Enter card number : ")
    Billing.card_number = input()
    print("Enter cvv number : ")
    Billing.cvv_number = input()
    print("Enter expiry date : ")
    Billing.expiry_date = input()
    print("Enter the name on card : ")
    Billing.name_on_card = input()
    print("Enter grid_card_number(H-I-K) : ")
    Billing.grid_card_number = input()
    if validate_card() == True:
        if Billing.card_number.startswith("4"):
            print("Card is valid! Type Visa")
            print("Amount paid successfully !")
        elif Billing.card_number.startswith("5"):
            print("Card is valid! Type MasterCard")
            print("Amount paid successfully !")
        elif Billing.card_number.startswith("6"):
            print("Card is valid! Type Rupay")
            print("Amount paid successfully !")
        else:
            print("Card is valid! Type 'others'")
            print("Amount paid successfully !")
    else:
        print("Invalid card. Please enter card details again.")
        if_card()
    ViewDBbilling.db_updating_transection_table()
    ViewDBbilling.db_deleting_after_payment()
    take_feedback()
Exemplo n.º 2
0
def if_cash():
    print("Amount paid successfully !")
    ViewDBbilling.db_updating_transection_table()
    ViewDBbilling.db_deleting_after_payment()
    take_feedback()