Skip to content

PRE-3231: fix refund from BO for scalapay#297

Merged
adumont-payplug merged 1 commit into
release/2.1.0from
fix/PRE-3231_fix_refund_from_bo
May 26, 2026
Merged

PRE-3231: fix refund from BO for scalapay#297
adumont-payplug merged 1 commit into
release/2.1.0from
fix/PRE-3231_fix_refund_from_bo

Conversation

@adumont-payplug
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 26, 2026 14:18
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.

Once credits are available, push a new commit or reopen this pull request to trigger a review.

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 back-office (BO) refunds for Scalapay payments by ensuring the refund processor treats the Scalapay gateway as eligible for PayPlug API refund processing.

Changes:

  • Add ScalapayGatewayFactory import to the refund processor.
  • Include ScalapayGatewayFactory::FACTORY_NAME in the list of gateway factories allowed to proceed with refund preparation (API client initialization).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/PaymentProcessing/RefundPaymentProcessor.php
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread tests/PHPUnit/PaymentProcessing/RefundPaymentProcessorTest.php
@adumont-payplug adumont-payplug merged commit c3ac950 into release/2.1.0 May 26, 2026
2 checks passed
@adumont-payplug adumont-payplug deleted the fix/PRE-3231_fix_refund_from_bo branch May 26, 2026 15:22
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.

2 participants