Notice: Trying to get property of non-object in /var/www/html/goshift/home/capturepayment.php on line 26

Fatal error: Uncaught Razorpay\Api\Errors\BadRequestError: The payment id provided is null in /var/www/html/goshift/home/razorpay/src/Entity.php:31 Stack trace: #0 /var/www/html/goshift/home/razorpay/src/Payment.php(12): Razorpay\Api\Entity->fetch(NULL) #1 /var/www/html/goshift/home/capturepayment.php(31): Razorpay\Api\Payment->fetch(NULL) #2 {main} thrown in /var/www/html/goshift/home/razorpay/src/Entity.php on line 31