Skip to content

[MIT-3467] Fix WooCommerce installment order description#534

Merged
rosle merged 5 commits intodevelopfrom
feature/MIT-3467-fix-wc-order-description
Aug 1, 2025
Merged

[MIT-3467] Fix WooCommerce installment order description#534
rosle merged 5 commits intodevelopfrom
feature/MIT-3467-fix-wc-order-description

Conversation

@rosle
Copy link
Copy Markdown
Contributor

@rosle rosle commented Jul 31, 2025

Description

  • Remove hardcoded installment order description
  • Accept custom WLB order description

Related links:

Rollback procedure

default rollback procedure

@rosle rosle self-assigned this Jul 31, 2025
@rosle rosle marked this pull request as ready for review August 1, 2025 04:39
@rosle rosle requested a review from Copilot August 1, 2025 04:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the WooCommerce installment order description by removing hardcoded values and implementing support for custom WLB (White Label Banking) order descriptions through environment variables.

Key changes:

  • Removed hardcoded "staging" description from installment charges
  • Added support for custom WLB order descriptions via OMISE_CUSTOM_WLB_ORDER_DESC environment variable
  • Enhanced test coverage for the new description functionality

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
includes/gateway/class-omise-payment-installment.php Implements custom WLB order description logic with environment variable support
tests/unit/includes/gateway/class-omise-payment-installment-test.php Adds comprehensive test coverage for installment charge functionality and custom descriptions
tests/unit/includes/gateway/abstract-omise-payment-offsite-test.php Refactors test infrastructure to support parameterized charge testing
tests/unit/includes/gateway/bootstrap-test-setup.php Enhances order mock to support additional properties and consistent currency formatting
tests/unit/includes/gateway/class-omise-payment-atome-test.php Updates test to use new testing infrastructure
tests/unit/includes/gateway/class-omise-payment-creditcard-test.php Removes redundant WC_VERSION constant definition
tests/unit/includes/gateway/class-omise-payment-googlepay-test.php Removes redundant WC_VERSION constant definition

Comment thread includes/gateway/class-omise-payment-installment.php
Comment thread tests/unit/includes/gateway/class-omise-payment-installment-test.php Outdated
@rosle rosle merged commit f5e64cf into develop Aug 1, 2025
3 checks passed
@rosle rosle deleted the feature/MIT-3467-fix-wc-order-description branch August 1, 2025 10:50
@rosle rosle mentioned this pull request Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants