add confirmation bonus adding
This commit is contained in:
parent
f2abca9dc6
commit
b68d0bcf37
1 changed files with 11 additions and 1 deletions
|
@ -179,7 +179,17 @@ class EventsHandlers
|
|||
$newPayment = $paymentCollection->createItem($service);
|
||||
|
||||
$newPayment->setField('SUM', $bonusCount);
|
||||
$newPayment->setPaid('Y');
|
||||
|
||||
//если верификация необходима, но не пройдена
|
||||
if (isset($response->verification) && !isset($response->verification->verifiedAt)) {
|
||||
$newPayment->setPaid('N');
|
||||
}
|
||||
|
||||
//если верификация не нужна
|
||||
if (!isset($response->verification)) {
|
||||
$newPayment->setPaid('Y');
|
||||
}
|
||||
|
||||
$order->save();
|
||||
}
|
||||
} catch (ObjectPropertyException | ArgumentException | SystemException | Exception $e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue