WC_Razorpay D

Total Complexity 350
Dependencies 17
Dependents 25
Total lines 2,887
Lines of code 2,074
Logical lines of code 1,043
Comment lines 230
Methods 60
Properties 12

Methods 60

Method Rating Maintainability Complexity Lines of code
update1ccOrderWC()
D
25
31 165
check_razorpay_response()
D
25
28 176
autoEnableWebhook()
C
28
21 148
init_form_fields()
C
29
20 139
updateOrder()
C
34 23 91
pluginInstrumentation()
B
33 19 101
handlePromotions()
B
33 19 96
__construct()
B
39 17 63
orderArg1CC()
A
43 13 42
createOrGetRazorpayOrderId()
A
42 12 56
createRazorpayOrderId()
A
37 10 80
getOrderCreationData()
A
45 10 39
updateRecoverCartInfo()
A
41 8 61
newUserAccount()
S
42 5 50
debitGiftCards()
S
49 6 30
process_refund()
S
45 5 42
verifyOrderAmount()
S
46 5 40
processRefundForOrdersWithGiftCard()
S
45 4 42
getErrorMessage()
S
52 5 25
updateOrderAddress()
S
43 3 51
receipt_page()
S
61 5 12
createRzpOfferCoupon()
S
51 4 26
hostCheckoutScripts()
S
52 4 22
add_notice()
S
56 4 20
getDefaultCheckoutArguments()
S
49 3 32
process_payment()
S
50 3 31
generateOrderForm()
S
50 3 31
addAdminCheckoutSettingsAlert()
S
57 3 22
enqueueCheckoutScripts()
S
55 3 21
getVersionMetaInfo()
S
55 3 19
getRazorpayPaymentParams()
S
58 3 16
getOrderSessionKey()
S
61 3 13
initHooks()
S
51 2 26
getRazorpayApiInstance()
S
64 3 11
webhookAPI()
S
53 2 24
verifySignature()
S
53 2 23
getCustomerInfo()
S
56 2 19
generate_razorpay_form()
S
59 2 15
addTerraWalletAmountAsPartialPaymentFee()
S
60 2 13
triggerValidationInstrumentation()
S
60 2 12
applyCoupon()
S
62 2 12
enqueue_checkout_js_script_on_checkout()
S
64 2 12
getOrderKey()
S
67 2 8
getCustomOrdercreationMessage()
S
67 2 8
getCheckoutArguments()
S
64 2 10
getOrderCurrency()
S
69 2 7
updateUserAddressInfo()
S
65 2 9
add_defer_to_checkout_js()
S
68 2 7
handleErrorCase()
S
70 1 6
getShippingZone()
S
75 1 4
redirectUser()
S
74 1 5
getWebhookUrl()
S
79 1 3
newTrackPluginInstrumentation()
S
75 1 4
generateSecret()
S
72 1 5
rzpThankYouMessage()
S
81 1 3
getRazorpayApiPublicInstance()
S
79 1 3
admin_options()
S
65 1 9
get_description()
S
80 1 3
getRedirectUrl()
S
66 1 8
getSetting()
S
80 1 3