transaction) { return res.status(400).json({ message: "Transaction not found" }); } const paymentStatusCheck=await EsewaCheckStatus(transaction.amount,transaction.product_id,process.env.MERCHANT_ID,process.env.ESEWAPAYMENT_STATUS_CHECK_URL) if (paymentStatusCheck.status === 200) { // Update...
You can also check the status of payment if no any response is received when redirected back to merchant's site. Check Status $gateway = Omnipay::create('Esewa_Secure'); $gateway->setMerchantCode('epay_payment'); $gateway->setSecretKey('secret_key_provided_by_esewa'); $gateway->set...