MeprCppAlipayStripeGateway D

Total Complexity 395
Dependencies 18
Dependents 0
Total lines 3,069
Lines of code 1,878
Logical lines of code 1,008
Comment lines 659
Methods 89
Properties 0

Methods 89

Method Rating Maintainability Complexity Lines of code
record_subscription_payment()
B
35 23 74
process_resume_subscription()
B
32 15 105
record_subscription_free_invoice_payment()
B
45 18 34
listener()
A
45 16 35
create_subscription()
A
37 13 75
record_payment_failure()
A
40 14 58
record_create_subscription()
A
42 14 50
process_create_subscription()
A
38 9 65
stripe_plan()
A
45 9 41
get_default_card()
A
54 10 22
display_update_account_form()
A
42 7 64
service_listener()
A
45 8 40
record_cancel_subscription()
A
53 9 23
record_payment()
A
47 8 35
record_resume_subscription()
A
47 8 32
process_payment()
A
42 7 47
stripe_customer()
A
44 6 47
display_stripe_checkout_form()
A
49 7 31
keys_are_set()
S
63 9 8
create_plan()
S
51 7 25
display_options_form()
S
48 6 37
send_stripe_request()
S
47 6 33
send_latest_invoice_payment_email()
S
46 5 38
process_suspend_subscription()
S
53 6 21
set_defaults()
S
43 4 50
handle_invoice_payment_succeeded_webhook()
S
49 5 31
enqueue_user_account_scripts()
S
55 6 16
update_connect_credentials()
S
49 5 27
display_on_site_form()
S
48 4 40
activate_subscription()
S
54 5 19
record_suspend_subscription()
S
57 5 18
process_cancel_subscription()
S
55 5 18
record_refund()
S
57 5 17
churn_buster()
S
58 5 14
legacy_stripe_customer()
S
50 4 27
update_subscription_payment_method()
S
54 4 19
create_product()
S
56 4 18
get_customer_id()
S
58 4 15
get_stripe_plan_id()
S
58 4 14
has_method_with_connect_status()
S
61 4 12
display_payment_form()
S
54 3 23
process_trial_payment()
S
52 3 23
create_customer()
S
56 3 18
is_test_mode()
S
68 4 7
stripe_connect_status()
S
65 4 8
get_card()
S
68 4 7
get_stripe_connect_url()
S
49 2 30
create_payment_intent()
S
49 2 29
spc_payment_fields()
S
61 3 12
enqueue_payment_form_scripts()
S
54 2 20
create_coupon()
S
55 2 19
get_renewal_base_date()
S
58 2 18
force_ssl()
S
77 3 3
get_coupon_id()
S
64 3 9
get_product_id()
S
64 3 9
retry_subscription_payment()
S
62 2 11
__construct()
S
53 1 24
create_setup_intent()
S
55 1 20
get_meta_gateway_id()
S
69 2 7
get_user_agent()
S
59 1 15
get_statement_descriptor()
S
66 2 8
get_plan_id()
S
68 2 8
sanitize_statement_descriptor()
S
66 2 8
process_payment_form()
S
61 1 12
retrieve_payment_intent()
S
78 1 3
retrieve_invoice()
S
69 1 7
retrieve_setup_intent()
S
69 1 7
retrieve_customer()
S
69 1 7
retrieve_subscription()
S
64 1 10
handle_one_time_payment()
S
68 1 7
process_refund()
S
66 1 7
record_trial_payment()
S
66 1 8
process_update_subscription()
S
91 1 2
confirm_payment_intent()
S
63 1 10
create_new_plan_id()
S
66 1 8
get_customer_subscription()
S
65 1 9
record_update_subscription()
S
91 1 2
process_signup_form()
S
91 1 2
display_payment_page()
S
91 1 2
get_element_style()
S
65 1 10
is_stripe_connect()
S
75 1 4
validate_payment_form()
S
91 1 2
get_stripe_connect_button_url()
S
79 1 3
validate_options_form()
S
91 1 2
get_headers()
S
62 1 10
load()
S
76 1 4
validate_update_account_form()
S
82 1 3
process_update_account_form()
S
81 1 3
retry_invoice_payment()
S
78 1 3