app/src/main/java/com/codingblocks/cbonlineapp/course/checkout/CheckoutActivity.kt
Method onCreate
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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