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. We have already created a custom payment module at the project level. Is it possibl
Hello everyone.
We have already created a custom payment module at the project level. Is it possible to offer the custom payment module via composer library (under vendor folder)? If yes, do we need to specify any dependency particularly in composer.json? and to consider the custom payment module with all the payment functionalities, do we need to follow any specific procedure?
Comments
-
cc: @UQF20CN58 @UQPMHEYS0
0 -
Do you mean you want to create a repo with your module and use it as a library?
0 -
Or you want to offer your module via SprykerEco namespace?
0 -
@UR1QYK8MC Thanks for your quick response.
We wanted to offer our payment module as a separate extension to various merchants via composer installation. And I hope we can offer the module without the SprykerEco namespace and I would also like to know whether is there any advantage in providing the module under the SprykerEco namespace?
0 -
If you want to offer your payment module as a stand alone extension nothing specific should be done. Ofc youβll need to specify all dependencies you module uses in composer.json.
0 -
@UR1QYK8MC Thank you for your reply. In composer.json, do we need to specifically mention anything in the "autoload" section?
Say for example:
"autoload": {
"psr-4": {
"SprykerEco\": "src/SprykerEco/"
}
},0 -
This section is for composer autoloader for classmap generation. See here https://getcomposer.org/doc/04-schema.md#autoload
0 -
@UR1QYK8MC I have tried the composer installation. But, facing the issue during checkout. Also, the payment not displayed in the checkout based on CheckoutPageDependencyProvider.
Spryker Kernel Exception
Can not resolve TestController for your bundle "Test"
You can fix this by adding the missing Controller to your bundle.Further, I suspect we need to register the module name like spryker-eco, spryker-shop. If, yes then please tell me the way to add and resolve it.
0 -
Hey @U01HX2U4NLQ please take a look at
$config[KernelConstants::CORE_NAMESPACES]
this configuration. Youβll need to add your own namespace to this.
0 -
@UR1QYK8MC Thanks you so much.
Now the controller working properly. But the payment not displayed on the checkout page. Could you please share your feedback to debug?0 -
Did add your payment to the payment_method.csv import file? It should imported and set to active
0 -
@UR1QYK8MC Yes, it's already on active status.
0 -
Then problem might be in payment.twig
0 -
Do you use b2c demoshop?
0 -
Yes, I am using b2c demoshop only.
0 -
I have added the module name in KernelConstants::DEPENDENCY_INJECTOR_YVES but the file was not called.
Also, I injected the handler and subforms in Pyz CheckoutPageDependencyProvider but it's not working.
0 -
@UR1QYK8MC Thanks you so much. I have now fixed the issues by updating the namespace. π
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 65 Spryker News
- 879 Developer Corner
- 743 Spryker Development
- 84 Spryker Dev Environment
- 360 Spryker Releases
- 3 Oryx frontend framework
- 33 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 22 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
- 68 Spryker Safari Questions
- 50 Random