37 lines
1021 B
PHP
37 lines
1021 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
class OnlinePaymentController extends Controller
|
|
{
|
|
/**
|
|
* Online pa
|
|
* @param Request $request [description]
|
|
*/
|
|
public function store(Request $request)
|
|
{
|
|
return $request->all();
|
|
|
|
// $response = Http::asForm()->post('https://mpi.gov.tm/payment/rest/getOrderStatus.do', [
|
|
// 'language' => 'ru',
|
|
// 'orderId' => $request->orderId,
|
|
// 'userName' => 301161000067,
|
|
// 'password' => 'E3vb2SR3dgTPdff'
|
|
// ]);
|
|
|
|
// if ($response['depositAmount'] > 0) {
|
|
// $payment_history = OnlinePaymentHistory::where('orderId', $request->orderId)->first();
|
|
|
|
// $booking = Booking::where('id', $payment_history->online_paymantable_id)->update([
|
|
// 'status' => Settings::PAID
|
|
// ]);
|
|
|
|
// $payment_history->update([
|
|
// 'paymentStatus' => Settings::PAID
|
|
// ]);
|
|
// }
|
|
}
|
|
}
|