WC_Stripe_Payment S

Total Complexity 45
Dependencies 7
Dependents 1
Total lines 354
Lines of code 153
Logical lines of code 67
Comment lines 153
Methods 25
Properties 2

Methods 25

Method Rating Maintainability Complexity Lines of code
add_order_metadata()
S
50 7 26
process_refund()
S
51 5 25
payment_complete()
S
53 5 22
process_zero_total_order()
S
58 3 15
add_order_shipping_address()
S
57 2 17
get_payment_method_charge_type()
S
78 2 3
get_name_from_order()
S
68 2 7
add_order_amount()
S
77 2 3
add_general_order_args()
S
67 1 8
set_payment_method()
S
81 1 3
add_payment_failed_note()
S
71 1 5
add_order_currency()
S
79 1 3
add_order_description()
S
77 1 3
__construct()
S
77 1 4
order_error()
S
76 1 4
get_gateway()
S
82 1 3
can_void_order()
S
100 1 0
process_pre_order_payment()
S
100 1 0
scheduled_subscription_payment()
S
100 1 0
add_order_payment_method()
S
100 1 0
get_payment_method_from_charge()
S
100 1 0
void_charge()
S
100 1 0
capture_charge()
S
100 1 0
process_payment()
S
100 1 0
destroy_session_data()
S
91 1 2