PMProGateway_stripe D

Total Complexity 631
Dependencies 28
Dependents 5
Total lines 3,928
Lines of code 2,573
Logical lines of code 1,429
Comment lines 971
Methods 89
Properties 1

Methods 89

Method Rating Maintainability Complexity Lines of code
pmpro_payment_option_fields()
D
11
71 369
pmpro_checkout_before_change_membership_level()
C
28
28 130
update_customer_at_checkout()
C
32 30 99
show_connect_payment_option_fields()
C
31 22 123
get_customer_for_user()
C
41 25 50
get_price_for_product()
B
38 21 67
process()
A
39 14 68
stripe_connect_save_options()
A
41 13 55
process_refund()
A
42 12 49
pmpro_include_payment_information_fields()
A
39 10 69
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
pmpro_checkout_order()
A
51 11 25
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 48
pmpro_billing_preheader_stripe_customer_portal()
A
49 9 29
get_customer_portal_url()
A
45 8 44
stripe_connect_deauthorize()
A
46 8 38
does_webhook_exist()
A
49 8 33
init()
A
42 6 55
create_product_for_level()
A
52 8 24
pmpro_checkout_after_preheader()
A
46 7 37
wp_ajax_pmpro_stripe_delete_webhook()
S
51 7 26
update_webhook_events()
S
52 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
pmpro_billing_preheader_stripe_checkout()
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
create_payment_intent()
S
49 4 31
get_account()
S
59 5 15
customer_has_billing_address()
S
64 6 10
clear_saved_subscriptions()
S
57 5 15
pmpro_set_up_apple_pay()
S
60 5 13
get_account_country()
S
62 5 11
show_stripe_checkout_pending_warning()
S
56 4 19
create_webhook()
S
58 4 16
process_charges()
S
59 4 16
cancel_subscription()
S
59 4 15
check_missing_webhook_events()
S
60 4 13
get_webhooks()
S
60 4 13
pmpro_does_apple_pay_domain_exist()
S
62 4 12
convert_unit_amount_to_price()
S
61 4 12
create_customer()
S
62 4 12
add_application_fee_amount()
S
61 4 12
update_customer()
S
62 4 12
retrieve_payment_intent()
S
62 4 12
calculate_trial_period_days()
S
60 4 12
ignoreCancelWebhookForThisSubscription()
S
62 3 12
get_publishablekey()
S
63 3 11
wp_ajax_pmpro_stripe_rebuild_webhook()
S
62 3 11
get_secretkey()
S
63 3 11
__construct()
S
57 2 17
get_customer()
S
67 3 8
get_subscription()
S
67 3 8
getGatewayOptions()
S
52 1 28
update_option_pmpro_stripe_payment_flow()
S
72 2 5
pmpro_include_billing_address_fields()
S
71 2 6
convert_price_to_unit_amount()
S
69 2 7
supports()
S
64 2 10
getSubscriptionStatus()
S
67 2 8
pmpro_get_apple_pay_domains()
S
66 2 8
pmpro_create_apple_pay_domain()
S
64 2 10
loadStripeLibrary()
S
65 2 8
using_legacy_keys()
S
74 2 4
pmpro_gateways()
S
70 2 6
stripe_connect_show_errors()
S
68 2 7
get_connect_user_id()
S
73 2 5
webhook_events()
S
62 1 13
pmpro_payment_options()
S
72 1 5
show_legacy_keys_settings()
S
73 1 5
pmpro_deactivation()
S
80 1 3
get_site_webhook_url()
S
79 1 3
using_stripe_checkout()
S
79 1 3
get_order_description()
S
75 1 3