Answer the question
In order to leave comments, you need to log in
Laravel Qiwi p2p notifications?
Good afternoon, I make a qiwi p2p payment, after payment a notification comes, but for some reason it does not write to the database
public function qiwi(Request $request) {
$data = $request->getContent();
$type = $data['bill']['status']['value'];
$ammount = $data['bill']['amount']['value'];
$comment = $data['bill']['comment'];
$cs = $data['bill']['customFields']['yourParam1'];
if($type == 'PAID'){
GetDonate::where('acces_key',$cs )->update([
'status' => 'PAID'
]);
}
}
Answer the question
In order to leave comments, you need to log in
$data = $request->getContent();
replaced by
$data = $request->all();
Or maybe it is that Qiwi does not send a notification?
For I even removed the checks and put it like this
But still nothing happens
Here is a notification from kiwi
Here is the route to the edge
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question