Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
konaspi2024
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
konaspi2024
Commits
d8c622a5
Commit
d8c622a5
authored
a year ago
by
Muhammad Iskandar Java
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add callback pembayaran
parent
7934d8fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletions
+26
-1
app/Http/Controllers/RegistrasiController.php
+22
-1
routes/web.php
+4
-0
No files found.
app/Http/Controllers/RegistrasiController.php
View file @
d8c622a5
...
...
@@ -33,7 +33,7 @@ public function create(){
'konferensi'
=>
$konferensi
,
// 'kode_registrasi' => $kode_registrasi
];
return
view
(
'form_registrasi'
,
$data
);
}
...
...
@@ -228,4 +228,25 @@ public function addFormKegiatan(Request $request)
return
view
(
'form_kegiatan'
,
$data
);
}
public
function
updatePembayaran
(
Request
$request
,
$va
)
{
if
(
$request
->
bearerToken
()
!=
'zGKEX7CDNLOvVtetz6lqFZzhZv11Gr9Y2MKVIQmqusAyD5STPPEt7ZC1gl8P'
){
return
response
([
'status'
=>
403
,
'message'
=>
'unauthorized access'
],
200
);
}
$registrasi
=
Registrasi
::
query
()
->
where
(
'kode_registrasi'
,
$va
)
->
update
([
'tanggal_bayar'
=>
Carbon
::
now
()
]);
return
response
([
'status'
=>
200
,
'message'
=>
'success'
],
200
);
}
}
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
d8c622a5
...
...
@@ -2,6 +2,7 @@
use
App\Http\Controllers\Admin\AdminController
;
use
App\Http\Controllers\RegistrasiController
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Route
;
/*
...
...
@@ -41,3 +42,6 @@
Route
::
get
(
'/delete_peserta/{id}'
,
[
AdminController
::
class
,
'delete_peserta'
])
->
name
(
'admin.delete_peserta'
);
Route
::
post
(
'/add-kegiatan'
,
[
RegistrasiController
::
class
,
'addFormKegiatan'
])
->
name
(
'registrasi.form-kegiatan.add'
);
Route
::
get
(
'check-invoice'
,
function
(
Request
$request
){
return
view
(
'email.invoice'
);
});
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment