SPC_Payment_Method_Stripe D

Total Complexity 296
Dependencies 1
Dependents 0
Total lines 1,847
Lines of code 1,278
Logical lines of code 718
Comment lines 245
Methods 58
Properties 9

Methods 58

Method Rating Maintainability Complexity Lines of code
check_order_paid()
D
25
47 154
setup_payment_intent()
C
30 27 114
create_stripe_customer()
B
35 15 89
process_payment()
A
39 14 62
process_webhook()
A
38 12 67
build_payment_intent_args()
A
43 13 50
payment_return()
A
47 10 33
stripe_connect_return()
A
51 10 23
process_refund()
A
44 8 43
options()
A
37 4 91
stripe_disconnect_return()
A
52 8 21
build_shipping_address()
S
59 7 13
log_payment()
S
53 6 24
create_payment_intent()
S
55 6 20
make_stripe_request()
S
49 5 30
enqueue_scripts()
S
49 5 28
create_payment_intent_with_retry()
S
57 5 16
get_transaction_url()
S
61 5 12
init()
S
46 3 36
setup_payment_domain()
S
48 3 35
checkout_validation()
S
66 5 7
get_cart_items_hash()
S
60 4 13
setup_payment_domain_manual()
S
60 4 12
stripe_connect_display()
S
56 3 17
get_application_fee_amount()
S
57 3 17
init_order()
S
60 3 13
get_fields()
S
57 2 20
get_order_by_payment_intent()
S
58 2 17
init_setup()
S
69 3 7
get_publishable_key()
S
76 3 3
get_secret_key()
S
76 3 3
get_account_id()
S
76 3 3
checkout_post_process_order()
S
68 3 7
update_payment_method()
S
66 3 8
generate_idempotency_key()
S
59 2 14
admin_order_tab_content_stripe()
S
59 2 13
order_actions_options()
S
57 1 26
show_payment_intent_id()
S
73 2 5
admin_notices()
S
66 2 7
set_payment_intent_manually()
S
69 2 6
is_allowed()
S
68 2 7
get_payment_intent_id()
S
71 2 6
get_client_secret()
S
71 2 6
get_stripe_customer_id()
S
70 2 7
set_stripe_customer_id()
S
67 2 8
create_order_status()
S
71 2 6
order_notify()
S
71 2 6
admin_order_tab()
S
70 2 6
order_actions()
S
67 2 7
mode()
S
71 2 6
stripe_webhook_display()
S
74 1 4
get_webhook_url()
S
65 1 10
setup()
S
80 1 3
set_payment_intent_id()
S
76 1 4
set_client_secret()
S
76 1 4
get_webhook_secret()
S
79 1 3
get_application_fee_percent()
S
79 1 3
get_transaction_id()
S
80 1 3