PMProGateway_stripe D

Total Complexity 604
Dependencies 21
Dependents 3
Total lines 3,785
Lines of code 2,632
Logical lines of code 1,455
Comment lines 676
Methods 85
Properties 1

Methods 85

Method Rating Maintainability Complexity Lines of code
pmpro_payment_option_fields()
D
11
73 377
getCustomer()
D
24
52 159
user_profile_fields()
D
25
25 206
subscribe()
C
28
28 132
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
stripe_connect_save_options()
A
44 12 45
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 50
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 37
create_payment_intent()
A
46 7 35
init()
S
42 5 60
stripe_connect_deauthorize()
S
50 7 28
update_webhook_events()
S
52 7 26
updateSubscription()
S
41 5 56
get_payment_intent()
S
54 7 23
get_setup_intent()
S
54 7 23
update_payment_method_for_subscriptions()
S
54 7 21
has_connect_credentials()
S
57 7 18
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
delete_plan()
S
56 6 18
pmpro_after_checkout()
S
65 7 8
create_subscription()
S
50 5 29
confirm_payment_intent()
S
52 5 26
delete_webhook()
S
57 5 17
get_webhooks()
S
57 5 16
clear_saved_subscriptions()
S
57 5 15
get_account()
S
60 5 15
pmpro_set_up_apple_pay()
S
60 5 13
get_account_country()
S
61 5 12
pmpro_required_billing_fields()
S
52 4 26
webhook_is_working()
S
50 3 32
wp_ajax_pmpro_stripe_create_webhook()
S
50 3 32
create_webhook()
S
58 4 16
archive_product()
S
59 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
add_application_fee_amount()
S
61 4 12
set_payment_intent()
S
63 4 11
set_setup_intent()
S
63 4 11
set_payment_method()
S
63 4 11
process()
S
55 3 21
update()
S
57 3 17
get_last_webhook_date()
S
57 3 16
process_charges()
S
62 3 12
ignoreCancelWebhookForThisSubscription()
S
62 3 12
get_publishablekey()
S
63 3 11
get_secretkey()
S
63 3 11
__construct()
S
58 2 17
confirm_setup_intent()
S
64 3 10
create_setup_intent()
S
65 3 9
set_customer()
S
71 3 6
getGatewayOptions()
S
55 1 24
stripe_connect_show_errors()
S
68 2 7
loadStripeLibrary()
S
73 2 5
get_connect_user_id()
S
72 2 5
pmpro_gateways()
S
70 2 6
using_legacy_keys()
S
74 2 4
get_application_fee_percentage()
S
71 2 5
pmpro_get_apple_pay_domains()
S
66 2 8
pmpro_include_billing_address_fields()
S
71 2 6
getSubscriptionStatus()
S
68 2 8
pmpro_create_apple_pay_domain()
S
64 2 10
get_site_webhook_url()
S
79 1 3
webhook_events()
S
68 1 8
show_legacy_keys_settings()
S
72 1 5
pmpro_activation()
S
79 1 3
pmpro_deactivation()
S
81 1 3
void()
S
80 1 3
pmpro_payment_options()
S
73 1 5