N
N
North Hemingway2022-04-21 18:19:28
Laravel
North Hemingway, 2022-04-21 18:19:28

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

2 answer(s)
P
pLavrenov, 2022-04-21
@pLavrenov

$data = $request->getContent();
replaced by
$data = $request->all();

N
North Hemingway, 2022-04-21
@nhemingways

Or maybe it is that Qiwi does not send a notification?
For I even removed the checks and put it like this
6261a1f40c761396116202.png
But still nothing happens
Here is a notification from kiwi
6261a24358f0a690377906.png
Here is the route to the edge
6261a28188f2e010051203.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question