MM_WPFS_Stripe D

Total Complexity 534
Dependencies 25
Dependents 20
Total lines 3,376
Lines of code 2,329
Logical lines of code 925
Comment lines 621
Methods 92
Properties 8

Methods 92

Method Rating Maintainability Complexity Lines of code
createSubscriptionForCustomer()
D
26
26 180
updateSubscriptionPlanAndQuantity()
B
35 22 87
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
43 10 51
getProducts()
A
44 10 46
createPaymentIntent()
A
42 9 58
updatePaymentIntentByInvoice()
A
40 8 68
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
attachPaymentMethodToStripeCustomer()
A
51 8 26
updateCustomerBillingAddressByPaymentMethod()
A
52 8 25
retrievePromotionalCode()
A
48 7 35
captureCharge()
S
51 7 29
remoteRequest()
S
50 7 28
validatePaymentMethodCVCCheck()
S
53 7 22
createPlan()
S
48 6 35
retrievePlan()
S
53 6 23
capturePaymentIntent()
S
55 6 19
createRecurringDonationPlan()
S
48 5 34
createUsageRecordForSubscription()
S
50 5 31
createSetupIntentWithPaymentMethod()
S
50 5 28
createSetupIntent()
S
51 5 28
createCheckoutSession()
S
51 5 28
subscribeCustomerToPlan()
S
52 5 26
updatePaymentIntent()
S
52 5 25
createTaxIdForCustomer()
S
53 5 23
retrieveSubscriptionWithParams()
S
54 5 22
listInvoicesWithParams()
S
54 5 22
refundCharge()
S
54 5 22
payInvoiceOutOfBand()
S
54 5 22
getCustomersWithParams()
S
55 5 21
listSubscriptionsWithParams()
S
55 5 21
getUpcomingInvoiceItems()
S
55 5 21
retrieveProductsByPriceIds()
S
54 5 21
retrieveDonationPlansWithLookupKey()
S
55 5 20
updateSubscription()
S
55 5 20
listPaymentMethodsWithParams()
S
56 5 19
confirmSetupIntent()
S
55 5 19
retrieveInvoiceWithParams()
S
55 5 19
retrieveCheckoutSessionWithParams()
S
55 5 19
getUpcomingInvoice()
S
56 5 19
retrieveCustomerWithParams()
S
55 5 19
getTaxIdsForCustomer()
S
55 5 19
retrieveTaxRate()
S
57 5 17
retrieveSubscription()
S
57 5 17
finalizeInvoice()
S
57 5 17
retrievePaymentMethod()
S
57 5 17
retrieveCoupon()
S
56 5 17
retrieveInvoice()
S
57 5 17
retrieveSetupIntent()
S
57 5 17
retrieveCustomer()
S
57 5 17
retrieveEvent()
S
57 5 17
retrieveProduct()
S
57 5 17
retrievePaymentIntent()
S
57 5 17
attachPaymentMethodToCustomer()
S
57 5 16
retrievePriceWithProductExpanded()
S
55 4 20
retrieveCouponByPromotionalCodeOrCouponCode()
S
57 4 18
__construct()
S
55 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
getStripeClient()
S
82 1 3
getStripeAuthenticationToken()
S
78 1 3
activateCancelledSubscription()
S
68 1 7
retrieveProductIdsByPriceIds()
S
66 1 10
isStripeApiInLiveMode()
S
79 1 3
fireBeforeSubscriptionUpdateAction()
S
67 1 8
getStripeTestAuthenticationToken()
S
80 1 3
getStripeLiveAuthenticationToken()
S
80 1 3
fireAfterSubscriptionUpdateAction()
S
67 1 8
createStripeClient()
S
70 1 6
getTestAccount()
S
78 1 3
getLiveAccount()
S
78 1 3
fireBeforeSubscriptionCancellationAction()
S
80 1 3
fireAfterSubscriptionCancellationAction()
S
80 1 3