$params = array(
'order_id' => $this->request->getOrderId(),
'amount' => $this->request->getAmount(),
'name' => $this->request->getUser()->name,
'phone' => $this->request->getUser()->mobile,
'mail' => $this->request->getUser()->email,
'callback' => route('client.callback'),
);
این هم روت :
Route::get('/callback', [UserPayment::class, 'callback'])->name('client.callback');
وقتی حالت مثلا در انتظار تایید پرداخت رو انتخاب میکنم میره روی روت کال بک
http://localhost:8080/payment/callback
ولی با این پیغام :
PHP 8.1.2
9.21.3
The POST method is not supported for this route. Supported methods: GET, HEAD.