PAFW_Payment_Gateway D

Total Complexity 269
Dependencies 5
Dependents 10
Total lines 1,045
Lines of code 842
Logical lines of code 485
Comment lines 1
Methods 83
Properties 8

Methods 83

Method Rating Maintainability Complexity Lines of code
has_enough_stock()
A
55 13 16
cancel_order()
A
43 11 45
get_bill_key()
A
51 10 25
get_order()
A
53 10 22
is_available()
A
58 10 13
handle_exception()
A
51 9 23
change_payment_method_for_subscription()
A
52 8 23
cancel_subscription()
A
53 8 21
wc_api_request_payment()
S
56 7 16
validate_order_status()
S
57 7 14
cancel_unpaid_order()
S
53 6 20
process_additional_charge()
S
48 5 31
before_change_payment_method_for_subscription()
S
57 6 15
subscription_cancel_batch_key()
S
57 6 15
get_description()
S
59 6 13
refund_request()
S
53 5 22
issue_cash_receipt()
S
47 4 36
cancel_cash_receipt()
S
50 3 31
woocommerce_view_order()
S
58 4 16
woocommerce_email_before_order_table()
S
68 5 6
mshop_email_customer_details()
S
68 5 6
get_title()
S
63 5 9
add_payment_log()
S
60 4 13
__construct()
S
53 3 22
clear_bill_key()
S
56 3 20
my_account_my_orders_actions()
S
55 3 18
is_fully_refundable()
S
75 4 3
payment_complete()
S
69 4 6
get_order_items()
S
57 3 15
delete_payment_method()
S
61 3 12
process_payment_response()
S
61 3 12
subscription_additional_charge()
S
60 3 12
wc_api_request_cancel()
S
62 3 11
escrow_register_delivery_info()
S
62 3 10
maybe_reattach_subscription_cancelled_callback()
S
71 3 5
maybe_remove_subscription_cancelled_callback()
S
71 3 5
get_card_param()
S
64 3 9
check_shop_order_capability()
S
71 3 5
get_cash_receipts()
S
68 3 7
get_transaction_id()
S
69 3 7
is_refundable()
S
65 3 8
wc_api_request_fail()
S
63 3 10
get_payment_form()
S
61 2 12
woocommerce_scheduled_subscription_payment()
S
65 2 8
thankyou_page()
S
64 2 9
get_order_id_from_txnid()
S
68 2 7
cancel_bill_key()
S
71 2 6
get_txnid()
S
65 2 9
subscription_cancel_additional_charge()
S
64 2 9
payment_window_mode()
S
71 2 7
process_order_pay()
S
65 2 8
get_api_url()
S
66 2 8
add_log()
S
71 2 6
woocommerce_payment_complete_order_status()
S
71 2 6
cancel_payment_request_by_user()
S
78 1 4
get_logo_url()
S
78 1 3
subscription_payment_info()
S
68 1 6
process_payment()
S
72 1 5
get_gateway_params()
S
67 1 8
get_payment_form_params_by_gateway()
S
100 1 2
get_pg_title()
S
83 1 3
get_api_version()
S
83 1 3
process_refund()
S
78 1 3
cancel_bill_key_when_change_to_same_payment_method()
S
83 1 3
issue_bill_key_mode()
S
83 1 3
gateway_url()
S
78 1 3
validate_payment_method_of_order()
S
80 1 3
is_escrow()
S
81 1 3
is_vbank()
S
81 1 3
adjust_settings()
S
100 1 2
validate_txnid()
S
80 1 3
clear_txnid()
S
78 1 4
enqueue_frontend_script()
S
91 1 2
get_receipt_popup_params()
S
83 1 3
after_change_payment_method_for_subscription()
S
71 1 6
get_merchant_id()
S
83 1 3
get_subscription_meta_key()
S
80 1 3
get_card_field_name()
S
79 1 3
issue_bill_key_when_change_payment_method()
S
83 1 3
get_escrow_company_name()
S
80 1 3
get_master_id()
S
83 1 3
is_test_key()
S
80 1 3
gateway_domain()
S
82 1 3