PMProGateway_stripe D

Total Complexity 603
Dependencies 28
Dependents 5
Total lines 3,862
Lines of code 2,503
Logical lines of code 1,398
Comment lines 973
Methods 90
Properties 1

Methods 90

Method Rating Maintainability Complexity Lines of code
pmpro_payment_option_fields()
D
12
63 354
pmpro_checkout_before_change_membership_level()
C
29
24 125
show_connect_payment_option_fields()
C
32 21 115
get_customer_for_user()
C
41 25 50
get_price_for_product()
B
38 21 67
update_customer_at_checkout()
B
39 18 64
process()
A
39 14 69
stripe_connect_save_options()
A
41 13 55
process_refund()
A
42 12 49
cancelSubscriptionAtGateway()
A
47 12 34
update()
A
44 11 48
get_product_id_for_level()
A
49 12 30
update_customer_from_user()
A
46 11 39
show_set_up_webhooks_popup()
A
40 8 71
cancel()
A
49 10 30
update_subscription_info()
A
45 9 40
pmpro_next_payment()
A
52 10 22
create_subscription_for_customer_from_order()
A
43 8 49
pmpro_include_payment_information_fields()
A
41 7 62
get_customer_portal_url()
A
45 8 44
pmpro_billing_preheader_stripe_customer_portal()
A
50 9 29
stripe_connect_deauthorize()
A
46 8 38
show_stripe_webhook_setup_notice()
A
47 8 37
does_webhook_exist()
A
49 8 33
create_product_for_level()
A
52 8 24
pmpro_checkout_after_preheader()
A
45 7 38
init()
A
43 6 49
update_webhook_events()
S
52 7 26
wp_ajax_pmpro_stripe_delete_webhook()
S
51 7 26
get_payment_intent()
S
54 7 23
update_payment_method_for_subscriptions()
S
53 7 22
has_connect_credentials()
S
57 7 18
dependencies()
S
51 6 26
process_payment_intent()
S
52 6 25
get_payment_method()
S
56 6 20
pmpro_after_checkout()
S
65 7 8
confirm_payment_intent()
S
51 5 27
user_profile_fields()
S
51 5 26
wp_ajax_pmpro_stripe_create_webhook()
S
52 5 24
get_application_fee_percentage()
S
55 5 20
pmpro_required_billing_fields()
S
54 5 19
delete_webhook()
S
57 5 17
pmpro_checkout_order()
S
59 5 15
clear_saved_subscriptions()
S
57 5 15
customer_has_billing_address()
S
64 6 10
get_account()
S
59 5 15
create_payment_intent()
S
50 4 29
pmpro_set_up_apple_pay()
S
60 5 13
get_account_country()
S
62 5 11
create_webhook()
S
58 4 16
process_charges()
S
59 4 16
show_stripe_checkout_pending_warning()
S
58 4 15
cancel_subscription()
S
59 4 15
calculate_trial_period_days()
S
59 4 13
get_webhooks()
S
60 4 13
check_missing_webhook_events()
S
60 4 13
convert_unit_amount_to_price()
S
61 4 12
create_customer()
S
62 4 12
update_customer()
S
62 4 12
pmpro_does_apple_pay_domain_exist()
S
62 4 12
retrieve_payment_intent()
S
62 4 12
add_application_fee_amount()
S
61 4 12
ignoreCancelWebhookForThisSubscription()
S
62 3 12
get_secretkey()
S
63 3 11
wp_ajax_pmpro_stripe_rebuild_webhook()
S
62 3 11
get_publishablekey()
S
63 3 11
__construct()
S
57 2 17
get_customer()
S
67 3 8
get_subscription()
S
67 3 8
getGatewayOptions()
S
54 1 24
get_order_description()
S
69 2 5
using_legacy_keys()
S
67 2 7
loadStripeLibrary()
S
65 2 8
pmpro_gateways()
S
70 2 6
get_connect_user_id()
S
73 2 5
pmpro_include_billing_address_fields()
S
71 2 6
stripe_connect_show_errors()
S
68 2 7
update_option_pmpro_stripe_payment_flow()
S
72 2 5
using_api_keys()
S
74 2 4
pmpro_create_apple_pay_domain()
S
64 2 10
pmpro_get_apple_pay_domains()
S
66 2 8
getSubscriptionStatus()
S
67 2 8
supports()
S
64 2 10
convert_price_to_unit_amount()
S
69 2 7
webhook_events()
S
62 1 13
get_site_webhook_url()
S
79 1 3
pmpro_deactivation()
S
80 1 3
show_legacy_keys_settings()
S
73 1 5
pmpro_payment_options()
S
72 1 5
using_stripe_checkout()
S
79 1 3