MM_WPFS_Stripe D

Total Complexity 514
Dependencies 25
Dependents 20
Total lines 3,137
Lines of code 2,193
Logical lines of code 891
Comment lines 624
Methods 93
Properties 10

Methods 93

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