AWPCP_PaymentsAPI D

Total Complexity 166
Dependencies 5
Dependents 2
Total lines 841
Lines of code 589
Logical lines of code 347
Comment lines 65
Methods 67
Properties 5

Methods 67

Method Rating Maintainability Complexity Lines of code
render_payment_completed_page()
A
46 9 40
render_checkout_page()
S
51 7 24
process_payment_request()
S
51 6 27
process_payment_for_transaction_doing_checkout()
S
53 6 25
process_payment_completed()
S
53 6 23
process_payment()
S
56 6 19
render_credit_plans_table()
S
54 5 20
payment_terms_are_equals()
S
62 5 12
update_account_balance()
S
64 5 11
get_accepted_payment_types()
S
62 5 11
set_transaction_item_from_payment_term()
S
55 4 20
render_payment_completed_page_title()
S
63 4 11
render_account_balance_for_transaction()
S
55 3 22
wp()
S
63 4 10
set_transaction_credit_plan()
S
59 3 15
__construct()
S
58 3 15
get_account_balance()
S
69 4 6
set_account_balance()
S
69 4 6
maybe_increase_account_balance()
S
62 3 11
maybe_decrease_account_balance()
S
62 3 11
render_transaction_errors()
S
62 3 11
get_transaction_with_method()
S
64 3 10
get_payment_terms()
S
66 3 8
payment_term_requires_payment()
S
71 3 5
calculate_payment_term_price()
S
60 2 15
get_url()
S
60 2 13
render_payment_methods()
S
61 2 12
get_credit_plans()
S
61 2 12
get_payment_method()
S
73 2 5
set_transaction_payment_method()
S
70 2 6
is_credit_accepted()
S
71 2 6
credit_system_enabled()
S
72 2 5
process_payment_for_transaction_processing_payment()
S
64 2 10
set_transaction_status()
S
68 2 7
render_account_balance()
S
67 2 7
register_payment_term_type()
S
75 2 4
register_payment_method()
S
75 2 4
get_user_payment_terms()
S
70 2 6
get_payment_term()
S
72 2 5
get_payment_term_type()
S
73 2 5
get_return_url()
S
79 1 3
get_notify_url()
S
79 1 3
get_cancel_url()
S
79 1 3
render_transaction_items()
S
66 1 8
payments_enabled()
S
79 1 3
is_currency_accepted()
S
79 1 3
process_transaction()
S
80 1 3
register_payment_methods()
S
80 1 3
render_checkout_payment_template()
S
69 1 7
add_credit()
S
74 1 4
set_transaction_status_to_completed()
S
79 1 3
get_transaction_payment_method()
S
79 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
register_payment_term_types()
S
80 1 3
get_transaction()
S
80 1 3
set_transaction_status_to_payment_completed()
S
79 1 3
get_or_create_transaction()
S
80 1 3
create_transaction()
S
80 1 3
set_transaction_status_to_open()
S
79 1 3
remove_credit()
S
74 1 4
set_transaction_status_to_checkout()
S
79 1 3
set_transaction_status_to_payment()
S
79 1 3
set_transaction_status_to_ready_to_checkout()
S
79 1 3