Similar to this PR #336, our cron script was looking for a charge in the default store where instead of the the store from where the order was ordered.
Added a code that gets the store ID from an oder and sets the store ID property of the config class. With this, the plugin will fetch the correct keys from the DB instead of the default store's keys.
Made a slight change in the Model/SyncStatus.php so that we check the data key from the refund object instead of the whole object because data key holds the actual refund object.
3. Quality assurance
Run these commands
// create crontab
$ bin/magento cron:install
// run our cron group
$ bin/magento cron:run --group omise
1. Objective
Fix the issue of an order getting canceled citing Payment expired when the charge was completed successfully.
Jira: #276
2. Description of change
Similar to this PR #336, our cron script was looking for a charge in the default store where instead of the the store from where the order was ordered.
Model/SyncStatus.php
so that we check thedata
key from therefund
object instead of the whole object becausedata
key holds the actual refund object.3. Quality assurance
Run these commands
🔧 Environments: