Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: List of Gateway on payment modal doesn't respect the availableForUseWithOrder value #2988

Closed
aodihis opened this issue Oct 5, 2022 · 0 comments · Fixed by #2994
Closed
Assignees
Labels
bug commerce4 Issues related to Commerce v4

Comments

@aodihis
Copy link

aodihis commented Oct 5, 2022

What happened?

Description

In gateway we have function availableForUseWithOrder(order) but if we do payment from control panel and click make payment look like this function does not get respected.

Steps to reproduce

  1. Create a gateway A that implement availableForUseWithOrder function and return false.
  2. Make an order from control panel.
  3. On transaction tab click make payment.

Expected behavior

On the payment modal the gateway A should not appear.

Actual behavior

The gateway A is appear on the modal.

Craft CMS version

4.2.5.1

Craft Commerce version

4.1.2

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug commerce4 Issues related to Commerce v4
Projects
None yet
2 participants