MM_WPFS_Stripe D

Total Complexity 544
Dependencies 26
Dependents 20
Total lines 3,200
Lines of code 2,240
Logical lines of code 928
Comment lines 639
Methods 94
Properties 10

Methods 94

Method Rating Maintainability Complexity Lines of code
createSubscriptionForCustomer()
C
29
22 139
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
updatePaymentIntentByInvoice()
A
40 8 68
fetchBillingAddressFromPaymentMethod()
A
50 10 31
getCustomersByEmail()
A
47 9 37
updateCustomer()
A
52 9 25
getTaxRates()
A
47 8 37
attachPaymentMethodToStripeCustomer()
A
51 8 26
validatePaymentMethodCVCCheck()
A
53 8 22
retrievePromotionalCode()
A
48 7 35
captureCharge()
S
51 7 29
updatePaymentIntent()
S
51 7 28
attachPaymentMethodToCustomerIfMissing()
S
49 6 34
createSetupIntentWithPaymentMethod()
S
51 6 26
createSetupIntent()
S
52 6 24
retrievePlan()
S
53 6 23
refundCharge()
S
54 6 22
getLatestCharge()
S
54 6 21
retrieveProductsByPriceIds()
S
53 6 21
capturePaymentIntent()
S
55 6 19
createRecurringDonationPlan()
S
48 5 34
createUsageRecordForSubscription()
S
50 5 31
confirmPaymentIntent()
S
56 6 16
confirmSetupIntent()
S
57 6 15
subscribeCustomerToPlan()
S
51 5 28
retrieveSetupIntent()
S
59 6 13
createCheckoutSession()
S
51 5 27
createTaxIdForCustomer()
S
53 5 23
payInvoiceOutOfBand()
S
54 5 22
listInvoicesWithParams()
S
54 5 22
retrieveSubscriptionWithParams()
S
54 5 22
getCustomersWithParams()
S
55 5 21
listSubscriptionsWithParams()
S
55 5 21
getUpcomingInvoiceItems()
S
55 5 21
updateSubscription()
S
54 5 21
retrievePriceWithProductExpanded()
S
55 5 20
retrieveDonationPlansWithLookupKey()
S
55 5 20
listPaymentMethodsWithParams()
S
56 5 19
getTaxIdsForCustomer()
S
55 5 19
retrieveCheckoutSessionWithParams()
S
55 5 19
retrieveInvoiceWithParams()
S
55 5 19
retrieveCustomerWithParams()
S
55 5 19
getUpcomingInvoice()
S
56 5 19
updateCustomerDetails()
S
57 5 17
retrieveTaxRate()
S
57 5 17
retrieveSubscription()
S
57 5 17
finalizeInvoice()
S
57 5 17
retrieveEvent()
S
57 5 17
retrieveCoupon()
S
56 5 17
retrieveCustomer()
S
57 5 17
retrieveProduct()
S
57 5 17
retrievePaymentMethod()
S
57 5 17
retrievePaymentIntent()
S
57 5 17
retrieveInvoice()
S
57 5 17
attachPaymentMethodToCustomer()
S
57 5 16
__construct()
S
55 4 19
retrieveCouponByPromotionalCodeOrCouponCode()
S
57 4 18
updateCustomerShippingAddressByPaymentMethod()
S
61 4 13
isRealBillingAddressInPaymentMethod()
S
62 4 12
updateCustomerBillingAddressByPaymentMethod()
S
63 4 11
getOnetimePrices()
S
60 2 14
getRecurringPrices()
S
60 2 14
getSubscriptionPlans()
S
61 2 13
activateCancelledSubscription()
S
63 2 11
getErrorCodes()
S
62 1 18
getCoupon()
S
67 2 8
getStripeAuthenticationTokenByMode()
S
75 2 4
getPromotionalCode()
S
67 2 8
getTestAccountLink()
S
62 1 13
getLiveAccountLink()
S
62 1 13
fireAfterSubscriptionUpdateAction()
S
67 1 8
getTestAccount()
S
78 1 3
fireBeforeSubscriptionUpdateAction()
S
67 1 8
createStripeClient()
S
70 1 6
getLiveAccount()
S
78 1 3
getStripeLiveAuthenticationToken()
S
80 1 3
getStripeClient()
S
82 1 3
getStripeTestAuthenticationToken()
S
80 1 3
retrieveProductIdsByPriceIds()
S
66 1 10
isStripeApiInLiveMode()
S
79 1 3
getStripeAuthenticationToken()
S
78 1 3
fireBeforeSubscriptionCancellationAction()
S
80 1 3
fireAfterSubscriptionCancellationAction()
S
80 1 3