update: payment

This commit is contained in:
tokumeikoi 2021-04-28 18:48:18 +09:00
parent 0333d62e6f
commit 84583bd384
3 changed files with 7 additions and 3 deletions

View File

@ -22,8 +22,12 @@ class PaymentController extends Controller
public function fetch() public function fetch()
{ {
$payments = Payment::all();
foreach ($payments as $k => $v) {
$payments[$k]['notify_url'] = url("/api/v1/guest/payment/notify/{$v->payment}/{$v->id}");
}
return response([ return response([
'data' => Payment::all() 'data' => $payments
]); ]);
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long