From 4ee7a1c6ace814a3a35c4ac28751aad5ea0d5ebf Mon Sep 17 00:00:00 2001 From: Shaxzodbek Qambaraliyev Date: Tue, 9 Apr 2019 12:14:50 +0500 Subject: [PATCH] payme --- src/Http/Classes/Payme/Payme.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Http/Classes/Payme/Payme.php b/src/Http/Classes/Payme/Payme.php index e94faee..7c02522 100644 --- a/src/Http/Classes/Payme/Payme.php +++ b/src/Http/Classes/Payme/Payme.php @@ -245,14 +245,13 @@ private function PerformTransaction() case Transaction::STATE_COMPLETED: // handle complete transaction $detail = json_decode($transaction->detail,true); PaymentService::payListener(null,$transaction,'after-pay'); + $this->response->success([ 'transaction' => (string)$transaction->id, 'perform_time' => 1*$detail['perform_time'], 'state' => 1*$transaction->state, ]); - - - + break; default: