Skip to content

Correct Vodacom query handler to properly parse transaction state - #1894

Merged
sublime247 merged 1 commit into
sublime247:mainfrom
OluwapelumiElisha:1777-Bug-Correct-Vodacom-query-handler-to-properly-parse-transaction-state
Aug 28, 2026
Merged

Correct Vodacom query handler to properly parse transaction state#1894
sublime247 merged 1 commit into
sublime247:mainfrom
OluwapelumiElisha:1777-Bug-Correct-Vodacom-query-handler-to-properly-parse-transaction-state

Conversation

@OluwapelumiElisha

Copy link
Copy Markdown
Contributor

Description

Corrects the Vodacom M-Pesa query handler to properly parse the underlying transaction state according to the OpenAPI specification.

Previously, getTransactionStatus was querying response.data?.output_TransactionStatus, which caused completed or failed transactions to fall through to the default "unknown" or "pending" state due to the mismatch. According to Vodacom's M-Pesa API documentation, the actual property for query responses is output_ResponseTransactionStatus.

This PR corrects the data extraction path to check the proper property while safely falling back to the previous property name as a safeguard.

Changes Made

  • Updated getTransactionStatus inside src/services/mobilemoney/providers/vodacom.ts to utilize output_ResponseTransactionStatus.

Related Issues

Fixes #1777

@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@OluwapelumiElisha Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@sublime247
sublime247 merged commit 95e3592 into sublime247:main Aug 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Correct Vodacom query handler to properly parse transaction state

2 participants