fix: WR-18424 support the payload attribute being received as a serialized JSON object - #17
Merged
DustinK-retailsuccess merged 1 commit intoJun 5, 2026
Conversation
steven-palomino
previously approved these changes
Jun 5, 2026
DustinK-retailsuccess
force-pushed
the
fixes/WR-18424-support-serialized-payload-attribute
branch
from
June 5, 2026 22:11
659f8c1 to
5a99457
Compare
steven-palomino
previously approved these changes
Jun 5, 2026
DustinK-retailsuccess
force-pushed
the
fixes/WR-18424-support-serialized-payload-attribute
branch
from
June 5, 2026 22:20
5a99457 to
7250bf7
Compare
steven-palomino
previously approved these changes
Jun 5, 2026
…lized JSON object
DustinK-retailsuccess
force-pushed
the
fixes/WR-18424-support-serialized-payload-attribute
branch
from
June 5, 2026 22:27
7250bf7 to
64698e4
Compare
steven-palomino
approved these changes
Jun 5, 2026
DustinK-retailsuccess
deleted the
fixes/WR-18424-support-serialized-payload-attribute
branch
June 5, 2026 22:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The following test message was received and logged the following error message.
This adjusts our logic to align with the expected payload. ProPay indicates this difference from their docs was caused by the payload being encrypted on their side and they hadn't seen the output exercised yet to understand the change in output.
{"version":"0","id":"ad917211-80b0-12f4-e6c2-6ed93c2f8c0b","detail-type":"merchantware.credentials.created","source":"propay.webhook","account":"203538442868","time":"2026-06-05T21:05:00Z","region":"us-east-1","resources":[],"detail":{"notificationId":"e7982070-8c25-448f-a6c4-dc63d8e4eae0","eventType":"merchantware.credentials.created","eventDateTimeUTC":"06/05/2026 21:04:57","payload":"{\"accountNum\":1234564789,\"merchantId\":123456789,\"merchantName\":\"Kurt T2P Test\",\"tapToPay\":{\"terminalId\":10000036,\"activationCode\":\"some-redacted-code\",\"merchantSiteId\":\"1QH5PTEV\",\"merchantKey\":\"AUDKZ-4I0SS-SJBN2-UD6DW-JCCZW\"}}"}}{ "Timestamp": "2026-06-05T21:05:03.0940340+00:00", "Level": "Error", "MessageTemplate": "Unrecoverable error processing message. Dead-lettering.", "Exception": "System.InvalidOperationException: The requested operation requires an element of type 'Object', but the target element has type 'String'.\n at System.Text.Json.ThrowHelper.ThrowJsonElementWrongTypeException(JsonTokenType expectedType, JsonTokenType actualType)\n at System.Text.Json.JsonDocument.TryGetNamedPropertyValue(Int32 index, ReadOnlySpan`1 propertyName, JsonElement& value)\n at Wayroo.Payments.ConfigurationRecorder.Lambda.Gateways.Propay.PropayConfigurationParser.TryReadDetail(String body, String& detailJson, Int64& accountNumber) in /home/vsts/work/1/s/Wayroo.Payments.ConfigurationRecorder.Lambda/Wayroo.Payments.ConfigurationRecorder.Lambda/Gateways/Propay/PropayConfigurationParser.cs:line 47\n at Wayroo.Payments.ConfigurationRecorder.Lambda.Gateways.Propay.PropayConfigurationParser.Parse(String rawWebhookBody) in /home/vsts/work/1/s/Wayroo.Payments.ConfigurationRecorder.Lambda/Wayroo.Payments.ConfigurationRecorder.Lambda/Gateways/Propay/PropayConfigurationParser.cs:line 20\n at Wayroo.Payments.ConfigurationRecorder.Lambda.PaymentConfigurationMessageHandler.Handle(SQSMessage message, CancellationToken cancellationToken) in /home/vsts/work/1/s/Wayroo.Payments.ConfigurationRecorder.Lambda/Wayroo.Payments.ConfigurationRecorder.Lambda/PaymentConfigurationMessageHandler.cs:line 39\n at Wayroo.Payments.ConfigurationRecorder.Lambda.Function.FunctionHandler(SQSEvent input, ILambdaContext context) in /home/vsts/work/1/s/Wayroo.Payments.ConfigurationRecorder.Lambda/Wayroo.Payments.ConfigurationRecorder.Lambda/Function.cs:line 54", "Properties": { "SourceContext": "Wayroo.Payments.ConfigurationRecorder.Lambda.ProcessFailureHandler", "MessageId": "0d18262e-0223-4aea-be9b-a40adcf8b90a", "TraceId": "Root=1-6a2339fc-9aadf74b36463538912b22f7;Parent=734b0a00ef7eff47;Sampled=0;Lineage=1:008a1e6d:0", "FunctionName": "dev-WayrooPayments-ConfigurationRecorderLambda", "AwsRequestId": "64ca1f07-c0d5-5f12-82f6-7d9afcfae41d", "InvokedFunctionArn": "arn:aws:lambda:us-east-1:203538442868:function:dev-WayrooPayments-ConfigurationRecorderLambda", "Scope": [ "0d18262e-0223-4aea-be9b-a40adcf8b90a", "0d18262e-0223-4aea-be9b-a40adcf8b90a" ] } }