coding-blocks/CBOnlineApp

View on GitHub
app/src/main/java/com/codingblocks/cbonlineapp/course/checkout/CheckoutActivity.kt

Summary

Maintainability
A
2 hrs
Test Coverage

Method onCreate has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_checkout)
        setToolbar(checkoutToolbar)
        Checkout.preload(applicationContext)

    Method showRazorPayCheckoutForm has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        /** Call this function at the last step after applying coupon and everything.
         Razorpay will automatically call either of the methods on CheckoutActivity.kt
    
         override fun onPaymentSuccess(p0: String?)  - p0: is razorpay_payment_id that needs to be sent to capture payment API
    
    

      There are no issues that match your filters.

      Category
      Status