Skip to content

2021-09-25-PSP-Transaction-stuck-after-Rebtel-internal-issues

Followed Bulk Processing Elastic query Result to get the affected Payments (https://dev.azure.com/MAJORITY/Documentation/_wiki/wikis/Main/58/Bulk-Processing-Elastic-Query-Results)

image.png

Save the result in Json file

##  Read JSON file
$response = cat C:\Repo\Psp.json | ConvertFrom-Json

##  Get found items (response.hits.hits)
##  Select _source.object property value from each item
##  Deserialize each JSON string from object property
##  Get object.RequestPathArguments.request.event_id values from each found log record
$eventIds = $response.hits.hits | 
              ForEach-Object -Process {$_._source.object} | 
              ConvertFrom-Json | 
              ForEach-Object -Process {$_.EventBody.OrderId,$_.EventBody.ApplicationId}

Get the OrderId and ApplicationId from the logs using above powershell script

Prepared the JSON file for event with below format

{"Event":{"Failed":true,"CancelPaymentStatusId":300,"OrderId":"3a846997-fe58-4a02-b690-db48738bd8f4","ApplicationId":40002,"Sequence":0,"Ruid":null,"Timestamp":0,"ModuleName":null,"MachineName":null},"ScheduleTime":null,"SessionId":null}

image.png

Get the SendEventsToServiceBus tool project from bank-Backend repo

image.png

Change the service buss Connection string, Event Details and file path in program.cs

image.png

Run the tools. And Check the logs...