To Anyone Facing error in Phonepay Payment gateway
replace code in : /app/Http/PaymentGateways/Gateways/Phonepe.php On Line NO. 44
replace code in : /app/Http/PaymentGateways/Gateways/Phonepe.php On Line NO. 44
PHP:
// amount, phone number, callback url, unique merchant transaction id
$url = $phonepe->makePayment(
floatval($order->total),
$order->user?->phone,
route('payment.success', ['order' => $order, 'paymentGateway' => 'phonepe']),
'1' // Unique merchant transaction ID, adjust accordingly
);