PMProGateway_stripe D

Total Complexity 507
Dependencies 19
Dependents 2
Total lines 3,201
Lines of code 2,181
Logical lines of code 1,243
Comment lines 577
Methods 71
Properties 1

Methods 71

Method Rating Maintainability Complexity Lines of code
getCustomer()
D
24
52 159
pmpro_payment_option_fields()
D
26
34 167
user_profile_fields()
D
25
25 206
subscribe()
C
29
28 130
create_plan()
B
39 16 58
pmpro_include_payment_information_fields()
A
37 12 78
refund()
A
43 13 52
pmpro_checkout_order()
A
48 14 33
getSubscription()
A
45 13 38
pmpro_checkout_before_processing()
A
44 12 40
cancelSubscriptionAtGateway()
A
47 12 34
pmpro_cron_stripe_subscription_updates()
A
45 11 41
user_profile_fields_save()
A
43 10 44
charge()
A
42 9 49
cancel()
A
49 10 30
pmpro_next_payment()
A
53 10 22
wp_ajax_pmpro_stripe_rebuild_webhook()
A
42 7 62
process_subscriptions()
A
49 8 35
does_webhook_exist()
A
49 8 33
pmpro_checkout_after_preheader()
A
46 7 36
create_payment_intent()
A
47 7 34
init()
S
42 5 57
update_webhook_events()
S
52 7 26
updateSubscription()
S
41 5 56
get_setup_intent()
S
54 7 23
get_payment_intent()
S
54 7 23
update_payment_method_for_subscriptions()
S
54 7 21
wp_ajax_pmpro_stripe_delete_webhook()
S
47 5 41
dependencies()
S
51 6 26
attach_payment_method_to_customer()
S
54 6 21
get_payment_method()
S
56 6 20
pmpro_after_checkout()
S
65 7 8
confirm_payment_intent()
S
52 5 26
delete_webhook()
S
57 5 17
get_webhooks()
S
57 5 16
get_account()
S
60 5 15
clear_saved_subscriptions()
S
57 5 15
pmpro_set_up_apple_pay()
S
60 5 13
get_account_country()
S
61 5 12
create_subscription()
S
52 4 26
pmpro_required_billing_fields()
S
52 4 26
wp_ajax_pmpro_stripe_create_webhook()
S
50 3 32
create_webhook()
S
58 4 16
delete_plan()
S
60 4 15
clean_up()
S
66 5 8
check_missing_webhook_events()
S
60 4 13
pmpro_does_apple_pay_domain_exist()
S
62 4 12
set_payment_method()
S
63 4 11
set_payment_intent()
S
63 4 11
set_setup_intent()
S
63 4 11
process()
S
55 3 21
update()
S
57 3 17
ignoreCancelWebhookForThisSubscription()
S
62 3 12
process_charges()
S
62 3 12
set_customer()
S
71 3 6
confirm_setup_intent()
S
64 3 10
create_setup_intent()
S
65 3 9
__construct()
S
63 2 11
getGatewayOptions()
S
58 1 18
pmpro_gateways()
S
70 2 6
pmpro_include_billing_address_fields()
S
71 2 6
pmpro_create_apple_pay_domain()
S
65 2 9
loadStripeLibrary()
S
73 2 5
getSubscriptionStatus()
S
68 2 8
pmpro_get_apple_pay_domains()
S
66 2 8
void()
S
80 1 3
pmpro_payment_options()
S
73 1 5
get_site_webhook_url()
S
79 1 3
pmpro_activation()
S
79 1 3
pmpro_deactivation()
S
81 1 3
webhook_events()
S
68 1 8