WC_Razorpay D

Total Complexity 328
Dependencies 17
Dependents 16
Total lines 2,713
Lines of code 1,922
Logical lines of code 982
Comment lines 232
Methods 59
Properties 12

Methods 59

Method Rating Maintainability Complexity Lines of code
update1ccOrderWC()
D
25
31 165
check_razorpay_response()
C
29
25 137
autoEnableWebhook()
C
28
21 148
updateOrder()
B
35 22 80
pluginInstrumentation()
B
33 19 101
handlePromotions()
B
33 19 96
init_form_fields()
B
30 16 127
orderArg1CC()
A
43 13 42
__construct()
A
42 12 55
createOrGetRazorpayOrderId()
A
44 10 49
getOrderCreationData()
A
45 10 39
updateRecoverCartInfo()
A
41 8 61
createRazorpayOrderId()
A
44 7 44
newUserAccount()
S
42 5 50
debitGiftCards()
S
49 6 30
process_refund()
S
47 5 37
verifyOrderAmount()
S
48 5 35
getRazorpayPaymentParams()
S
50 5 30
getErrorMessage()
S
52 5 25
processRefundForOrdersWithGiftCard()
S
47 4 37
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
generateOrderForm()
S
50 3 31
process_payment()
S
50 3 31
addAdminCheckoutSettingsAlert()
S
57 3 22
enqueueCheckoutScripts()
S
55 3 21
getVersionMetaInfo()
S
55 3 19
getOrderSessionKey()
S
61 3 13
getRazorpayApiInstance()
S
64 3 11
initHooks()
S
52 2 25
verifySignature()
S
54 2 22
getCustomerInfo()
S
56 2 19
webhookAPI()
S
58 2 17
generate_razorpay_form()
S
59 2 15
addTerraWalletAmountAsPartialPaymentFee()
S
60 2 13
applyCoupon()
S
62 2 12
triggerValidationInstrumentation()
S
60 2 12
getDefaultCheckoutArguments()
S
54 1 22
updateUserAddressInfo()
S
65 2 9
getOrderCurrency()
S
69 2 7
getOrderKey()
S
67 2 8
getCustomOrdercreationMessage()
S
67 2 8
rzpThankYouMessage()
S
81 1 3
getCheckoutArguments()
S
70 1 6
generateSecret()
S
72 1 5
newTrackPluginInstrumentation()
S
75 1 4
redirectUser()
S
74 1 5
admin_options()
S
65 1 9
getWebhookUrl()
S
79 1 3
add_magic_banner()
S
79 1 4
getShippingZone()
S
75 1 4
getRazorpayApiPublicInstance()
S
79 1 3
get_description()
S
80 1 3
handleErrorCase()
S
70 1 6
getRedirectUrl()
S
66 1 8
getSetting()
S
80 1 3