What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello everyone, I have created the custom payment module and I have struggled with the OMS state du
Hello everyone,
I have created the custom payment module and I have struggled with the OMS state during payment and the order history always shows "New". I have followed the steps that exist in the documentation https://documentation.spryker.com/docs/dd-be-implementation.
Further, I have found the oms active name/state machine payment name in the table "spy_oms_order_process" but no state item entries added/updated in table "spy_oms_order_item_state" related to my *.xml file.
Are any special commands need to execute in the console? Or need to add the state entries manually?
So, could anyone please assist to debug and resolve the issue?
Thanks in advance. π
Comments
-
0
-
and to
SalesConstants::PAYMENT_METHOD_STATEMACHINE_MAPPING
0 -
you can find it in config_default.php
0 -
@UR1QYK8MC Thank you for your response. Yes, I have added the payment name in both configurations in config_default.php.
Also, added the OmsConstants::PROCESS_LOCATION value, and it draws the flow properly in zed oms settings. But, the state only not updated/added in the table.
So, could you please tell me to debug in-depth core files or any other way?
0 -
Please open your state machine file and check if process name is correct (common name is the same as filename)
0 -
@UR1QYK8MC Yes, I have checked the name is defined as the filename as well in config_default.php.
0 -
hm, did you added it to the payment import as well?
0 -
and you can see it in backend?
0 -
Yes, the payments imported (data:import:payment-method) and ll displayed in the backend as well as oms.
0 -
The payment process also working properly except for the order status issue. I suspect the "spy_oms_order_item_state" only missing.
0 -
Also, debug the omsfacede inside our payment module trigger the respective event during the order process. I think it does not work unavailability of state entries in the table "spy_oms_order_item_state".
0 -
@UR1QYK8MC Could you please tell me in-depth when the entries will be added in the table "spy_oms_order_item_state". It's helpful for me to debug and correct my issue.
0 -
@UR1QYK8MC Finally, I have debugged the issue and fixed it by adjusting my payment module OMS condition plugin. Thanks. π
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random