PMProGateway_stripe D

Total Complexity 686
Dependencies 23
Dependents 2
Total lines 4,450
Lines of code 2,825
Logical lines of code 1,664
Comment lines 1,111
Methods 107
Properties 1

Methods 107

Method Rating Maintainability Complexity Lines of code
pmpro_payment_option_fields()
D
22
46 194
update_customer_at_checkout()
C
32 30 98
show_connect_payment_option_fields()
C
31 21 120
get_customer_for_user()
C
41 25 50
subscribe()
B
34 16 96
process()
B
37 15 78
user_profile_fields_subscription_updates()
B
34 13 104
get_price_for_product()
A
41 15 54
pmpro_include_payment_information_fields()
A
37 12 78
refund()
A
42 13 53
getSubscription()
A
45 13 39
stripe_connect_save_options()
A
44 12 45
pmpro_checkout_before_processing()
A
44 12 40
cancelSubscriptionAtGateway()
A
47 12 35
user_profile_fields_save()
A
42 11 49
pmpro_cron_stripe_subscription_updates()
A
44 11 41
update_customer_from_user()
A
46 11 39
pmpro_checkout_order()
A
51 11 25
cancel()
A
49 10 30
process_subscriptions()
A
47 9 40
pmpro_next_payment()
A
52 10 22
does_webhook_exist()
A
48 8 34
create_subscription_for_customer_from_order()
A
45 7 43
create_product_for_level()
A
52 8 24
pmpro_checkout_after_preheader()
A
46 7 36
charge()
A
43 6 47
init()
S
42 5 60
wp_ajax_pmpro_stripe_delete_webhook()
S
49 7 29
stripe_connect_deauthorize()
S
50 7 28
updateSubscription()
S
41 5 58
update_webhook_events()
S
51 7 27
get_payment_intent()
S
53 7 24
get_setup_intent()
S
53 7 24
update_payment_method_for_subscriptions()
S
53 7 23
get_product_id_for_level()
S
54 7 22
user_profile_fields()
S
53 7 20
has_connect_credentials()
S
57 7 18
dependencies()
S
51 6 26
process_payment_intent()
S
52 6 25
attach_payment_method_to_customer()
S
53 6 23
get_payment_method()
S
55 6 21
delete_plan()
S
56 6 18
calculate_trial_period_days()
S
54 6 18
set_default_payment_method_for_customer()
S
57 6 17
pmpro_after_checkout()
S
65 7 8
create_subscription()
S
51 5 28
wp_ajax_pmpro_stripe_create_webhook()
S
50 5 28
confirm_payment_intent()
S
51 5 27
update()
S
53 5 24
delete_webhook()
S
56 5 18
get_webhooks()
S
56 5 17
create_payment_intent()
S
48 4 32
get_account()
S
58 5 16
create_plan()
S
49 4 30
customer_has_billing_address()
S
64 6 10
clear_saved_subscriptions()
S
57 5 15
get_account_country()
S
60 5 13
pmpro_set_up_apple_pay()
S
60 5 13
pmpro_required_billing_fields()
S
52 4 26
retrieve_setup_intent()
S
57 4 18
webhook_is_working()
S
50 3 33
create_webhook()
S
57 4 17
process_charges()
S
58 4 17
archive_product()
S
59 4 15
clean_up()
S
64 5 9
process_setup_intent()
S
58 4 15
check_missing_webhook_events()
S
59 4 14
pmpro_does_apple_pay_domain_exist()
S
61 4 13
add_application_fee_amount()
S
60 4 13
create_customer()
S
62 4 12
set_payment_intent()
S
61 4 12
convert_price_to_unit_amount()
S
61 4 12
set_payment_method()
S
61 4 12
set_setup_intent()
S
61 4 12
retrieve_payment_intent()
S
62 4 12
update_customer()
S
62 4 12
add_subscription_id_to_setup_intent()
S
56 3 20
get_last_webhook_date()
S
56 3 17
ignoreCancelWebhookForThisSubscription()
S
60 3 13
get_secretkey()
S
62 3 12
get_publishablekey()
S
62 3 12
confirm_setup_intent()
S
63 3 11
wp_ajax_pmpro_stripe_rebuild_webhook()
S
62 3 11
__construct()
S
58 2 17
get_customer()
S
67 3 8
set_customer()
S
66 3 8
create_setup_intent()
S
64 3 10
get_subscription()
S
67 3 8
pmpro_create_apple_pay_domain()
S
63 2 11
getGatewayOptions()
S
54 1 24
get_connect_user_id()
S
70 2 6
pmpro_gateways()
S
70 2 6
pmpro_get_apple_pay_domains()
S
65 2 9
stripe_connect_show_errors()
S
68 2 7
loadStripeLibrary()
S
73 2 5
pmpro_include_billing_address_fields()
S
71 2 6
get_application_fee_percentage()
S
68 2 6
using_legacy_keys()
S
74 2 4
getSubscriptionStatus()
S
67 2 8
show_legacy_keys_settings()
S
70 1 6
getCustomer()
S
75 1 4
void()
S
75 1 4
pmpro_payment_options()
S
72 1 5
get_site_webhook_url()
S
75 1 4
pmpro_activation()
S
79 1 3
pmpro_deactivation()
S
80 1 3
webhook_events()
S
66 1 9