Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
osben committed May 4, 2019
1 parent f0a4d88 commit 1876db6
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions payment/Payeer/callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,19 @@
switch ($_POST['m_status'])
{
case 'success':
$simpla->orders->update_order(intval($order_id),
array(
'paid' => 1,
'status' => $settings['payeer_order_status']
));

if (!$order->paid)
{
$simpla->orders->update_order(intval($order_id),
array(
'paid' => 1,
'status' => $settings['payeer_order_status']
));

$simpla->notify->email_order_user(intval($order_id));
$simpla->orders->close(intval($order_id));
}

$simpla->notify->email_order_user(intval($order_id));
$simpla->orders->close(intval($order_id));
break;

default:
Expand Down

0 comments on commit 1876db6

Please sign in to comment.