Update transaction status mapping for accurate order state handling based on official documentation.

Created on 2 August 2025, 21 days ago

Problem/Motivation

The current status mapping does not fully align with Paystack’s official transaction status documentation. In particular, failed transactions are mapped to 'refunded', which is not accurate—failed payments should be mapped to 'authorization_voided'.

Proposed resolution

Updated mapping:

  • 'success' → 'completed'
  • 'abandoned' → 'authorization_voided'
  • 'failed' → 'authorization_voided'
  • 'ongoing', 'pending', 'processing', 'queued' → 'pending'
  • 'reversed' → 'refunded'

This update ensures that order states in Drupal Commerce correctly reflect the true status of Paystack transactions, improving reliability and user experience.

I am creating a merge request for the fix.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇳🇬Nigeria chike Nigeria

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024