MM_WPFS_Stripe D

Total Complexity 536
Dependencies 25
Dependents 20
Total lines 3,333
Lines of code 2,287
Logical lines of code 925
Comment lines 620
Methods 92
Properties 8

Methods 92

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