Skip to content

Commit

Permalink
Updating to serializer in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboo-singhvi committed Oct 30, 2024
1 parent f392c00 commit f3196eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Helper/Webhook/OrderClosedWebhookHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ public function handleWebhook(
foreach ($additionalData as $key => $value) {
// Check if the key matches the pattern "order-X-pspReference"
if (preg_match('/^order-(\d+)-pspReference$/', $key, $matches)) {
$orderIndex = (int)$matches[1]; // Get the order number, e.g., 1, 2
$orderIndex = (int)$matches[1];
$pspReference = $value;
$sortValue = $orderIndex; // Set status based on order index
$sortValue = $orderIndex;

// Retrieve adyen_order_payment for this pspReference
$adyenOrderPayment = $this->adyenOrderPaymentCollectionFactory->create()
Expand Down

0 comments on commit f3196eb

Please sign in to comment.