$this->request->getOrderId(), 'amount' => $this->request->getAmount(), 'name' => $this->request->getUser()->name, ...' /> $this->request->getOrderId(), 'amount' => $this->request->getAmount(), 'name' => $this->request->getUser()->name, ...' />
۲ صبا ح
مشکل در روت client.callback
جامعه پی اچ پی ایجاد شده در ۲۲ مرداد ۱۴۰۱
$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.

حل شد . مشکل این بود که تو .idpay.ir باید روش بازگشت رو استفاده از متد get میزاشتم

صبا ح ۲۲ مرداد ۱۴۰۱، ۰۸:۵۸

سلام دوست عزیز

موفق باشید ?

بهترین پاسخ
محمد گازری ۲۲ مرداد ۱۴۰۱، ۰۹:۱۶