The default value $success = true;. It should be false.
This happened to us, The block, if (empty($_POST['razorpay_payment_id']) === false) was skipped because $_POST['razorpay_payment_id']) was not generated and the final block, if ($success === true) was executed.
The default value
$success = true;. It should befalse.This happened to us, The block,
if (empty($_POST['razorpay_payment_id']) === false)was skipped because$_POST['razorpay_payment_id'])was not generated and the final block,if ($success === true)was executed.