Created
October 9, 2017 11:40
-
-
Save py4/c7ff4058da4497b8ed73dde80965fc14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wallet = ShatootWallet(inst_id, campaign_id, mr_endpoint, mr_username, mr_password) | |
print ">>>> getting balance: " | |
print(wallet.get_balance(sample_card['pan'], sample_card['pin'], sample_card['expiration_date'], sample_card['cvv2'])) | |
print ">>>> purchase with amount : 800" | |
stan = 1835 | |
purchase_time = time.strftime('%H%M%S') | |
purchase_date = datetime.today().strftime("%m%d") | |
rrn = wallet.purchase(sample_card['pan'], sample_card['pin'], sample_card['expiration_date'], sample_card['cvv2'], '800', sample_card['terminal_id'], stan, purchase_date, purchase_time) | |
print "rrn: "+str(rrn) | |
print ">>>> terminal statement: " | |
print(wallet.get_terminal_statement("10000011")) | |
print ">>>> getting balance: " | |
print(wallet.get_balance(sample_card['pan'], sample_card['pin'], sample_card['expiration_date'], sample_card['cvv2'])) | |
print ">>>> reversing the payment" | |
wallet.purchase_reverse(sample_card['pan'], stan, '800', purchase_date, purchase_time, sample_card['terminal_id']) | |
print ">>>> terminal statement" | |
print(wallet.get_terminal_statement("10000011")) | |
print ">>> getting balance" | |
print(wallet.get_balance(sample_card['pan'], sample_card['pin'], sample_card['expiration_date'], sample_card['cvv2'])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment