MM_WPFS_Stripe D

Total Complexity 573
Dependencies 26
Dependents 21
Total lines 3,364
Lines of code 2,361
Logical lines of code 990
Comment lines 665
Methods 97
Properties 11

Methods 97

Method Rating Maintainability Complexity Lines of code
createSubscriptionForCustomer()
C
28
24 142
updateSubscriptionPlanAndQuantity()
B
35 22 87
remoteRequest()
B
42 16 52
resolveErrorMessageByCode()
A
44 16 45
findExistingPaymentMethodByFingerPrintAndExpiry()
A
45 16 41
createPaymentIntent()
A
39 13 67
createInvoiceForOneTimePayment()
A
39 12 69
createCustomerWithPaymentMethod()
A
43 13 51
createPreviewInvoiceForOneTimePayment()
A
43 12 51
cancelSubscription()
A
43 11 56
getPriceList()
A
47 12 35
cancelOrRefundPaymentIntent()
A
48 12 31
getProducts()
A
44 10 46
getCustomersByEmail()
A
45 10 40
updatePaymentIntentByInvoice()
A
40 8 68
fetchBillingAddressFromPaymentMethod()
A
50 10 31
getTaxRates()
A
46 9 40
createProduct()
A
46 8 41
updateCustomer()
A
52 9 25
updatePaymentIntent()
A
49 8 32
attachPaymentMethodToStripeCustomer()
A
51 8 26
validatePaymentMethodCVCCheck()
A
53 8 22
retrievePromotionalCode()
A
48 7 35
captureCharge()
S
51 7 29
createRecurringPlan()
S
47 6 36
attachPaymentMethodToCustomerIfMissing()
S
49 6 34
createSetupIntentWithPaymentMethod()
S
51 6 26
createSetupIntent()
S
52 6 24
retrievePlan()
S
53 6 23
getUpcomingInvoice()
S
54 6 22
refundCharge()
S
54 6 22
retrieveProductsByPriceIds()
S
53 6 21
getLatestCharge()
S
54 6 21
retrieveCustomer()
S
54 6 20
finalizeInvoice()
S
54 6 20
capturePaymentIntent()
S
55 6 19
confirmPaymentIntent()
S
56 6 16
createUsageRecordForSubscription()
S
50 5 31
confirmSetupIntent()
S
57 6 15
subscribeCustomerToPlan()
S
51 5 28
retrieveSetupIntent()
S
59 6 13
createCustomerPortalSession()
S
52 5 27
createCheckoutSession()
S
51 5 27
createTaxIdForCustomer()
S
53 5 23
retrieveSubscriptionWithParams()
S
54 5 22
listInvoicesWithParams()
S
54 5 22
payInvoiceOutOfBand()
S
54 5 22
updateSubscription()
S
54 5 21
getCustomersWithParams()
S
55 5 21
getUpcomingInvoiceItems()
S
55 5 21
listSubscriptionsWithParams()
S
55 5 21
retrievePlansWithLookupKey()
S
55 5 20
retrievePriceWithProductExpanded()
S
55 5 20
retrieveInvoiceWithParams()
S
55 5 19
retrieveCheckoutSessionWithParams()
S
55 5 19
listPaymentMethodsWithParams()
S
56 5 19
retrieveCustomerWithParams()
S
55 5 19
getTaxIdsForCustomer()
S
55 5 19
getCustomerName()
S
56 5 18
updateCustomerDetails()
S
57 5 17
retrieveTaxRate()
S
57 5 17
retrieveSubscription()
S
57 5 17
retrievePaymentMethod()
S
57 5 17
retrieveCoupon()
S
56 5 17
retrieveProduct()
S
57 5 17
retrieveEvent()
S
57 5 17
retrievePaymentIntent()
S
57 5 17
retrieveInvoice()
S
57 5 17
attachPaymentMethodToCustomer()
S
57 5 16
__construct()
S
54 4 20
retrieveCouponByPromotionalCodeOrCouponCode()
S
57 4 18
updateCustomerShippingAddressByPaymentMethod()
S
61 4 13
isRealBillingAddressInPaymentMethod()
S
62 4 12
updateCustomerBillingAddressByPaymentMethod()
S
63 4 11
getRecurringPrices()
S
60 2 14
getOnetimePrices()
S
60 2 14
getSubscriptionPlans()
S
61 2 13
activateCancelledSubscription()
S
63 2 11
getErrorCodes()
S
62 1 18
getPromotionalCode()
S
67 2 8
getStripeAuthenticationTokenByMode()
S
75 2 4
getLiveAccount()
S
66 2 8
getTestAccount()
S
66 2 8
getCoupon()
S
67 2 8
getTestAccountLink()
S
62 1 13
getLiveAccountLink()
S
62 1 13
retrieveProductIdsByPriceIds()
S
66 1 10
getStripeAuthenticationToken()
S
78 1 3
isStripeApiInLiveMode()
S
79 1 3
getStripeTestAuthenticationToken()
S
80 1 3
fireAfterSubscriptionUpdateAction()
S
67 1 8
getStripeLiveAuthenticationToken()
S
80 1 3
getStripeClient()
S
82 1 3
fireBeforeSubscriptionUpdateAction()
S
67 1 8
createStripeClient()
S
70 1 6
fireBeforeSubscriptionCancellationAction()
S
80 1 3
fireAfterSubscriptionCancellationAction()
S
80 1 3