L
L
lemonlimelike2019-04-20 12:32:13
Yandex
lemonlimelike, 2019-04-20 12:32:13

What's wrong with payment?

Good afternoon. I connected Yandex.Money payment to my website. Everything seems to work, notifications come to my mail.
Tried a real payment, 2 rubles each, paid many times. I was looking for how to send the payer's mail to the notification url, but I did not find it. And so I tried to pay again, and here it is (screenshot):
5cbae6701d669817925795.png
I enter the card details, transfers to this page, money is withdrawn from the card, but they do not go to the balance. What it is?
Here is my notification handler code:

$clear = $request->notification_type.'&'.$request->operation_id.'&'.$request->amount.'&'.$request->currency.'&'.$request->datetime.'&'.$request->sender.'&'.$request->codepro.'&'.'код'.'&'.$request->label;
        $hash = sha1($request->notification_type.'&'.$request->operation_id.'&'.$request->amount.'&'.$request->currency.'&'.$request->datetime.'&'.$request->sender.'&'.$request->codepro.'&'.'код'.'&'.$request->label);
        if($request->sha1_hash != $hash or $request->codepro === true or $request->unaccepted === true) {
            exit();
        }
        $test = $clear. '  email: '.$request->email;
        Mail::to('[email protected]')->send(new KeyEmail($test));

        return redirect()->route('successPay');

And yes, although I indicated I require the payer's email, he still does not come exactly

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2019-04-20
@lemonlimelike

for debugging network applications, the program code is useless , only

LOGI

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question