| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7d1a18c commit e7a2f0d
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,8 +27,8 @@ def get_unsettled_transaction_list(): | |||
| 27 | 27 | for transaction in unsettledTransactionListResponse.transactions.transaction: | |
| 28 | 28 | print('Transaction Id : %s' % transaction.transId) | |
| 29 | 29 | print('Transaction Status : %s' % transaction.transactionStatus) | |
| 30 | - print('Amount Type : %s' % transaction.accountType) | ||
| 31 | - print('Settle Amount : %s' % transaction.settleAmount) | ||
| 30 | + print('Amount Type : %.2f' % transaction.accountType) | ||
| 31 | + print('Settle Amount : %.2f' % transaction.settleAmount) | ||
| 32 | 32 | ||
| 33 | 33 | if unsettledTransactionListResponse.messages: | |
| 34 | 34 | print('Message Code : %s' % unsettledTransactionListResponse.messages.message[0]['code'].text) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,7 +24,7 @@ def get_subscription(subscriptionId): | |||
| 24 | 24 | ||
| 25 | 25 | if (response.messages.resultCode=="Ok"): | |
| 26 | 26 | print ("Subscription Name : %s" % response.subscription.name) | |
| 27 | - print ("Subscription Amount: %s" % response.subscription.amount) | ||
| 27 | + print ("Subscription Amount: %.2f" % response.subscription.amount) | ||
| 28 | 28 | for transaction in response.subscription.arbTransactions.arbTransaction: | |
| 29 | 29 | print "Transaction id: %d" % transaction.transId | |
| 30 | 30 | else: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,8 +32,8 @@ def get_batch_statistics(): | |||
| 32 | 32 | ||
| 33 | 33 | for statistic in batchStatisticsResponse.batch.statistics.statistic: | |
| 34 | 34 | print('Account Type : %s' % statistic.accountType) | |
| 35 | - print('Charge Amount : %s' % statistic.chargeAmount) | ||
| 36 | - print('Refund Amount : %s' % statistic.refundAmount) | ||
| 35 | + print('Charge Amount : %.2f' % statistic.chargeAmount) | ||
| 36 | + print('Refund Amount : %.2f' % statistic.refundAmount) | ||
| 37 | 37 | print('Decline Count : %s' % statistic.declineCount) | |
| 38 | 38 | ||
| 39 | 39 | if batchStatisticsResponse.messages is not None: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,7 +29,7 @@ def get_customer_profile_transaction_list(customerProfileId): | |||
| 29 | 29 | print('Transaction Id : %s' % transaction.transId) | |
| 30 | 30 | print('Transaction Status : %s' % transaction.transactionStatus) | |
| 31 | 31 | print('Amount Type : %s' % transaction.accountType) | |
| 32 | - print('Settle Amount : %s' % transaction.settleAmount) | ||
| 32 | + print('Settle Amount : %.2f' % transaction.settleAmount) | ||
| 33 | 33 | ||
| 34 | 34 | if transactionListForCustomerResponse.messages is not None: | |
| 35 | 35 | print('Message Code : %s' % transactionListForCustomerResponse.messages.message[0]['code'].text) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,8 +28,8 @@ def get_transaction_details(transId): | |||
| 28 | 28 | print('Transaction Id : %s' % transactionDetailsResponse.transaction.transId) | |
| 29 | 29 | print('Transaction Type : %s' % transactionDetailsResponse.transaction.transactionType) | |
| 30 | 30 | print('Transaction Status : %s' % transactionDetailsResponse.transaction.transactionStatus) | |
| 31 | - print('Auth Amount : %s' % transactionDetailsResponse.transaction.authAmount) | ||
| 32 | - print('Settle Amount : %s' % transactionDetailsResponse.transaction.settleAmount) | ||
| 31 | + print('Auth Amount : %.2f' % transactionDetailsResponse.transaction.authAmount) | ||
| 32 | + print('Settle Amount : %.2f' % transactionDetailsResponse.transaction.settleAmount) | ||
| 33 | 33 | if hasattr(transactionDetailsResponse.transaction, 'tax') == True: | |
| 34 | 34 | print('Tax : %s' % transactionDetailsResponse.transaction.tax.amount) | |
| 35 | 35 | if hasattr(transactionDetailsResponse.transaction, 'profile'): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments