Working on credit card
This commit is contained in:
36
app/Http/Controllers/OnlinePaymentController.php
Normal file
36
app/Http/Controllers/OnlinePaymentController.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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
|
||||
// ]);
|
||||
// }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user