WC_Stripe_Webhook_Handler D

Total Complexity 230
Dependencies 15
Dependents 0
Total lines 1,548
Lines of code 906
Logical lines of code 594
Comment lines 367
Methods 30
Properties 6

Methods 30

Method Rating Maintainability Complexity Lines of code
process_webhook_payment()
B
34 22 88
process_webhook()
B
40 23 57
process_payment_intent()
B
34 18 92
process_webhook_refund_updated()
A
38 14 66
process_webhook_refund()
A
40 12 58
process_review_closed()
A
47 12 31
get_order_from_intent()
A
50 12 27
validate_request()
A
48 10 31
check_for_webhook()
A
44 9 44
process_webhook_charge_succeeded()
A
46 9 39
process_webhook_dispute_closed()
A
47 9 35
process_setup_intent()
A
43 8 50
process_webhook_capture()
A
48 8 32
process_deferred_webhook()
A
48 8 30
has_duplicate_webhooks_setup()
S
57 7 17
process_review_opened()
S
50 6 29
process_webhook_source_canceled()
S
53 6 22
process_webhook_dispute()
S
50 5 28
process_webhook_charge_failed()
S
54 5 22
handle_deferred_payment_intent_succeeded()
S
53 4 22
get_request_headers()
S
59 4 13
__construct()
S
61 3 11
get_refund_amount()
S
63 3 11
get_partial_amount_to_charge()
S
63 3 10
get_payment_method_type_from_charge()
S
67 3 9
get_refund_object()
S
67 2 7
run_webhook_received_action()
S
67 2 7
defer_webhook_processing()
S
64 1 11
is_partial_capture()
S
80 1 3
process_account_updated()
S
77 1 4