Skip to content

Commit

Permalink
removed debug print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsharma1100 committed Jul 20, 2022
1 parent 37fc7ae commit 7b5f35a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Controller/Payment/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function execute()
$orderId = $post['payload']['payment']['entity']['notes']['merchant_order_id'];
$paymentId = $post['payload']['payment']['entity']['id'];
$orderWebhookData = $this->getOrderWebhookData($orderId);

if (empty($orderWebhookData['rzp_webhook_notified_at']) === true)
{
$this->setWebhookNotifiedAt($orderWebhookData['entity_id']);
Expand Down Expand Up @@ -568,7 +568,7 @@ protected function setWebhookData($entityId, $webhookVerifiedStatus, $paymentId,
"amount" => $amount
);
$webhookDataText = serialize($webhookData);
$this->logger->info($webhookDataText);

$order = $this->order->load($entityId);
$order->setRzpWebhookData($webhookDataText);
$order->save();
Expand Down
4 changes: 0 additions & 4 deletions Cron/UpdateOrdersToProcessing.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,9 @@ public function execute()

$orders = $this->orderRepository->getList($searchCriteria);

// print_r($orders->getData());die;
foreach ($orders->getItems() as $order)
{
if ($order->getPayment()->getMethod() === 'razorpay') {
// var_dump($order->getRzpWebhookData());
// var_dump( unserialize( $order->getRzpWebhookData() ) );
// die;
$rzpWebhookData = $order->getRzpWebhookData();
if (empty($rzpWebhookData) === false) // check if webhook cron has run and populated the rzp_webhook_data column
{
Expand Down

0 comments on commit 7b5f35a

Please sign in to comment.