AWPCP_PaymentsAPI D

Total Complexity 182
Dependencies 5
Dependents 12
Total lines 995
Lines of code 654
Logical lines of code 390
Comment lines 140
Methods 74
Properties 7

Methods 74

Method Rating Maintainability Complexity Lines of code
render_payment_completed_page()
A
44 10 46
render_checkout_page()
A
46 10 37
process_payment_request()
A
48 8 32
render_credit_plans_table()
S
51 6 25
process_payment_for_transaction_doing_checkout()
S
53 6 25
process_payment_completed()
S
53 6 23
process_payment()
S
56 6 19
payment_terms_are_equals()
S
62 5 12
update_account_balance()
S
64 5 11
get_accepted_payment_types()
S
62 5 11
render_account_balance_for_transaction()
S
55 4 20
set_transaction_item_from_payment_term()
S
55 4 20
render_payment_completed_page_title()
S
63 4 11
set_transaction_credit_plan()
S
58 3 16
wp()
S
63 4 10
__construct()
S
58 3 15
set_account_balance()
S
69 4 6
get_account_balance()
S
69 4 6
render_transaction_errors()
S
62 3 11
maybe_increase_account_balance()
S
62 3 11
maybe_decrease_account_balance()
S
62 3 11
render_account_balance()
S
62 3 11
get_payment_terms()
S
66 3 8
calculate_payment_term_price()
S
60 2 15
payment_term_requires_payment()
S
71 3 5
get_url()
S
60 2 13
render_payment_methods()
S
61 2 12
render_checkout_payment_template()
S
63 2 12
get_credit_plans()
S
61 2 12
set_transaction_status()
S
67 2 8
set_transaction_payment_method()
S
67 2 7
is_credit_accepted()
S
71 2 6
get_transaction_with_method()
S
68 2 7
process_payment_for_transaction_processing_payment()
S
64 2 10
credit_system_enabled()
S
72 2 5
get_payment_method()
S
73 2 5
get_payment_term_type()
S
73 2 5
register_payment_term_type()
S
75 2 4
get_payment_term()
S
72 2 5
register_payment_method()
S
75 2 4
get_user_payment_terms()
S
70 2 6
render_transaction_items()
S
66 1 8
show_transaction_items()
S
80 1 3
get_return_url()
S
79 1 3
show_credit_plans_table()
S
73 1 5
show_checkout_page()
S
73 1 5
show_account_balance()
S
74 1 5
show_transaction_errors()
S
80 1 3
show_payment_completed_page()
S
72 1 5
register_payment_methods()
S
80 1 3
get_notify_url()
S
79 1 3
show_payment_completed_page_title()
S
80 1 3
get_cancel_url()
S
79 1 3
add_credit()
S
74 1 4
set_transaction_status_to_completed()
S
79 1 3
payments_enabled()
S
79 1 3
register_payment_term_types()
S
80 1 3
format_account_balance()
S
79 1 3
get_credit_plan()
S
80 1 3
get_transaction_credit_plan()
S
80 1 3
get_transaction_payment_term()
S
72 1 5
get_payment_methods()
S
82 1 3
get_transaction_payment_method()
S
79 1 3
get_transaction()
S
80 1 3
create_transaction()
S
80 1 3
is_currency_accepted()
S
79 1 3
set_transaction_status_to_open()
S
79 1 3
set_transaction_status_to_ready_to_checkout()
S
79 1 3
set_transaction_status_to_checkout()
S
79 1 3
set_transaction_status_to_payment()
S
79 1 3
set_transaction_status_to_payment_completed()
S
79 1 3
remove_credit()
S
74 1 4
process_transaction()
S
80 1 3
get_or_create_transaction()
S
80 1 3