PMProGateway_stripe D

Total Complexity 766
Dependencies 29
Dependents 3
Total lines 5,022
Lines of code 3,200
Logical lines of code 1,880
Comment lines 1,254
Methods 115
Properties 1

Methods 115

Method Rating Maintainability Complexity Lines of code
pmpro_payment_option_fields()
D
16
58 279
pmpro_checkout_before_change_membership_level()
D
27
28 140
update_customer_at_checkout()
C
32 30 100
show_connect_payment_option_fields()
C
31 23 127
get_customer_for_user()
C
41 25 50
get_price_for_product()
B
39 20 64
subscribe()
B
34 16 96
user_profile_fields_subscription_updates()
B
34 13 104
refund()
A
42 13 53
process()
A
41 12 58
getSubscription()
A
45 13 39
process_refund()
A
42 12 48
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
get_product_id_for_level()
A
49 12 30
pmpro_cron_stripe_subscription_updates()
A
44 11 41
update_customer_from_user()
A
46 11 39
pmpro_include_payment_information_fields()
A
41 9 61
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
init()
A
40 6 67
pmpro_billing_preheader_stripe_checkout()
A
46 8 36
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
stripe_connect_deauthorize()
A
48 7 35
charge()
A
43 6 47
user_profile_fields()
S
49 7 30
wp_ajax_pmpro_stripe_delete_webhook()
S
49 7 29
updateSubscription()
S
41 5 58
update_webhook_events()
S
51 7 27
get_setup_intent()
S
53 7 24
get_payment_intent()
S
53 7 24
update_payment_method_for_subscriptions()
S
53 7 23
has_connect_credentials()
S
57 7 18
dependencies()
S
51 6 26
process_payment_intent()
S
52 6 25
update()
S
53 6 24
attach_payment_method_to_customer()
S
53 6 23
get_payment_method()
S
55 6 21
delete_plan()
S
56 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
pmpro_required_billing_fields()
S
54 5 19
delete_webhook()
S
56 5 18
create_payment_intent()
S
48 4 32
get_webhooks()
S
56 5 17
get_account()
S
58 5 16
create_plan()
S
49 4 30
clear_saved_subscriptions()
S
57 5 15
customer_has_billing_address()
S
64 6 10
get_account_country()
S
60 5 13
pmpro_set_up_apple_pay()
S
60 5 13
retrieve_setup_intent()
S
57 4 18
webhook_is_working()
S
50 3 33
process_charges()
S
58 4 17
get_application_fee_percentage()
S
57 4 17
show_stripe_checkout_pending_warning()
S
57 4 17
create_webhook()
S
57 4 17
clean_up()
S
64 5 9
archive_product()
S
59 4 15
process_setup_intent()
S
58 4 15
check_missing_webhook_events()
S
59 4 14
add_application_fee_amount()
S
60 4 13
pmpro_does_apple_pay_domain_exist()
S
61 4 13
update_customer()
S
62 4 12
create_customer()
S
62 4 12
calculate_trial_period_days()
S
60 4 12
set_payment_intent()
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
add_subscription_id_to_setup_intent()
S
56 3 20
get_last_webhook_date()
S
56 3 17
getGatewayOptions()
S
51 2 30
ignoreCancelWebhookForThisSubscription()
S
60 3 13
get_publishablekey()
S
62 3 12
get_secretkey()
S
62 3 12
wp_ajax_pmpro_stripe_rebuild_webhook()
S
62 3 11
confirm_setup_intent()
S
63 3 11
__construct()
S
58 2 17
webhook_events()
S
59 2 16
create_setup_intent()
S
64 3 10
get_subscription()
S
67 3 8
set_customer()
S
66 3 8
get_customer()
S
67 3 8
pmpro_create_apple_pay_domain()
S
63 2 11
get_customer_portal_url()
S
62 2 11
pmpro_gateways()
S
70 2 6
pmpro_include_billing_address_fields()
S
71 2 6
loadStripeLibrary()
S
65 2 8
stripe_connect_show_errors()
S
68 2 7
get_connect_user_id()
S
70 2 6
pmpro_get_apple_pay_domains()
S
65 2 9
stripe_checkout_beta_enabled()
S
79 2 3
using_stripe_checkout()
S
70 2 6
getSubscriptionStatus()
S
67 2 8
convert_price_to_unit_amount()
S
69 2 7
using_legacy_keys()
S
74 2 4
register_cron()
S
71 1 6
pmpro_deactivation()
S
80 1 3
pmpro_activation()
S
79 1 3
getCustomer()
S
75 1 4
show_legacy_keys_settings()
S
70 1 6
pmpro_payment_options()
S
72 1 5
void()
S
75 1 4
get_site_webhook_url()
S
75 1 4