PPCP_Paypal_Checkout_For_Woocommerce_Request D

Total Complexity 428
Dependencies 2
Dependents 2
Total lines 1,703
Lines of code 1,602
Logical lines of code 922
Comment lines 3
Methods 51
Properties 5

Methods 51

Method Rating Maintainability Complexity Lines of code
ppcp_create_order_request()
D
18
61 195
ppcp_set_payer_details()
D
33 41 76
ppcp_update_order()
D
27
36 126
ppcp_order_capture_request()
B
33 21 88
ppcp_capture_authorized_payment()
B
31 20 102
ppcp_get_details()
B
40 18 60
ppcp_update_order_status()
B
45 18 39
ppcp_get_address_from_customer()
A
44 15 38
ppcp_get_readable_message()
A
46 15 38
__construct()
A
34 10 89
ppcp_refund_order()
A
39 11 62
ppcp_create_webhooks_request()
A
41 10 53
ppcp_order_auth_request()
A
40 10 53
ppcp_get_paypal_line_items_from_cart()
A
44 10 42
ppcp_get_paypal_line_items_from_order()
A
46 10 35
ppcp_handle_webhook_request_handler()
A
52 8 24
get_genrate_token()
A
47 7 35
ppcp_shipping_preference()
S
58 8 15
ppcp_validate_webhook_event()
S
46 6 38
ppcp_delete_exiting_webhook()
S
49 6 26
ppcp_get_paypal_order()
S
54 6 21
ppcp_get_access_token()
S
47 5 34
payment_status_completed()
S
56 5 18
ppcp_delete_first_webhook()
S
50 4 25
generate_request_id()
S
58 4 15
ppcp_get_checkout_details()
S
49 3 29
ppcp_show_details_authorized_payment()
S
50 3 28
getallheaders_custome()
S
60 4 12
ppcp_get_details_from_cart()
S
56 3 17
ppcp_get_details_from_order()
S
57 3 15
is_valid_for_use()
S
66 4 9
ppcp_get_rounded_total_in_order()
S
60 3 12
ppcp_get_rounded_total_in_cart()
S
61 3 11
save_paypal_meta_data()
S
66 3 8
ppcp_get_number_of_decimal_digits()
S
71 3 6
ppcp_log()
S
67 3 8
getallheaders_value()
S
65 3 10
ppcp_prepare_webhook_validate_request()
S
59 2 14
ppcp_get_extra_offset_line_item()
S
63 2 11
ppcp_application_context()
S
62 2 11
payment_status_refunded()
S
74 2 5
ppcp_is_currency_supports_zero_decimal()
S
70 2 6
payment_status_on_hold()
S
74 2 5
ppcp_add_log_details()
S
67 2 7
payment_status_failed()
S
74 2 5
payment_status_pending()
S
72 2 5
payment_on_hold()
S
72 2 5
payment_complete()
S
68 2 7
payment_status_voided()
S
81 1 3
payment_status_expired()
S
81 1 3
payment_status_denied()
S
81 1 3