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

Fixed issue for order status pre-authorized state configuration #2529

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

sarfarazbheda
Copy link

Description

As per the Webhook Helper[adyen/module-payment/Helper/Webhook.php] file, we can assign states if order is in pre-authorized condition.

image

But when we create new order status "adyen_authorized" [ref. from adyen-magento2/Model/Config/Source/PreAuthorized.php], and assign this status in Adyen configuration, it's not working.

image

When the order is Authorized, Even if we have assigned new status in configuration, it will show order in "Pending" status only. The reason is, below function only grab the first item from the assigned Statuses. [file ref. vendor/adyen/module-payment/Helper/Order.php]

image

So As solution, I switched the sequence in Webhook Helper[adyen/module-payment/Helper/Webhook.php] file to pick "adyen_authorized" first and then check for "NEW" status. See updated file below:

image

Tested scenarios

  • Create new Order status from admin panel
  • Assign order status for pre-authorized configuraiton
  • Verify order status once Payment is authorized

Fixes
There is no such issue reported.

@sarfarazbheda
Copy link
Author

Please approve workflows

@sarfarazbheda
Copy link
Author

@candemiralp please check this PR

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.

1 participant