We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using the getGatewayByHandle method may return an archived gateway.
getGatewayByHandle
craft.commerce.gateways.getGatewayByHandle('stripe')
The getGatewayByHandle method should only return non-archived gateways.
The getGatewayByHandle returns the first gateway with the specified handle, even if it's archived.
4.13.7
4.7.2
No response
The text was updated successfully, but these errors were encountered:
PT-2373 [4.x]: getGatewayByHandle returns archived gateway
Sorry, something went wrong.
Fixed craftcms#3839
7934d41
Merge pull request #2 from boundstate/fix-3839
d99de97
nfourtythree
No branches or pull requests
What happened?
Description
Using the
getGatewayByHandle
method may return an archived gateway.Steps to reproduce
craft.commerce.gateways.getGatewayByHandle('stripe')
Expected behavior
The
getGatewayByHandle
method should only return non-archived gateways.Actual behavior
The
getGatewayByHandle
returns the first gateway with the specified handle, even if it's archived.Craft CMS version
4.13.7
Craft Commerce version
4.7.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
No response
The text was updated successfully, but these errors were encountered: