WC_Stripe_Webhook_Handler D

Total Complexity 221
Dependencies 12
Dependents 0
Total lines 1,349
Lines of code 804
Logical lines of code 540
Comment lines 308
Methods 28
Properties 5

Methods 28

Method Rating Maintainability Complexity Lines of code
process_webhook_payment()
B
35 22 80
process_webhook()
B
42 21 52
process_payment_intent()
B
35 18 83
process_webhook_refund()
A
41 12 56
process_review_closed()
A
48 12 30
get_order_from_intent()
A
50 12 27
process_webhook_refund_updated()
A
43 10 47
process_webhook_charge_succeeded()
A
50 11 27
validate_request()
A
48 10 31
check_for_webhook()
A
45 9 39
process_webhook_dispute_closed()
A
47 9 34
process_setup_intent()
A
45 8 41
process_webhook_capture()
A
48 8 31
process_deferred_webhook()
A
49 8 28
has_duplicate_webhooks_setup()
S
57 7 17
process_review_opened()
S
50 6 28
process_webhook_source_canceled()
S
54 6 21
process_webhook_dispute()
S
50 5 27
process_webhook_charge_failed()
S
54 5 21
handle_deferred_payment_intent_succeeded()
S
58 4 15
get_request_headers()
S
59 4 13
get_refund_amount()
S
63 3 11
__construct()
S
61 3 11
get_partial_amount_to_charge()
S
63 3 10
get_refund_object()
S
67 2 7
is_partial_capture()
S
80 1 3
defer_webhook_processing()
S
65 1 10
process_account_updated()
S
77 1 4