-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Cannot add Custom Payment Provider #7988
Comments
I also had this issue as well. I also have problems with the product images not showing up. |
@kenidotproton were you able to fix it? |
Nah not really while I got the plugin to kinda work by installing the @medusajs/payment and medusa-core-utils packages Stripe didn't work for me and Doesn't show up in the backend. |
Thank you for the report, I ll fix that |
I have fixed the loading mechanism, it should be available in the release that follows this pr |
Hi @adrien2p i deleted de node_modules folder install them again, every medusa module is in preview, but i'm still facing the same issue, is there any step i'm missing? |
@jscardona12 I ve tried on my side and it worked, can I get your to remove your lock file as well please? |
Today is working, thx! |
Hi, I am still getting this issue even when deleting the lockfile, running migrations, removing node_modules etc. The error: Relevant code in medusa config: [Modules.PAYMENT]: {
resolve: "@medusajs/payment",
options: {
providers: [
{
resolve: "./modules/providers/crypto",
id: "crypto",
options: {
// provider options...
ServerUrl: process.env.SERVER_URL,
ServerPublicKey: process.env.SERVER_PUB_KEY,
ServerPrivateKey: process.env.SERVER_PRIV_KEY,
ServerStoreId: process.env.SERVER_STORE_ID,
},
},
],
},
},
``` |
Can you share the stack trace? |
Here ye go:
My modules are in src/ like docs recommended. |
it says the module is not installed, either you didn't follow the documents or the installer does not install it by default! |
It is a local module under a provider for the payment module. It should be able to find the local directory, but it thinks it is a package instead, when it shouldn't. This is the case unless the error log is innacurate. |
We should probably improve the error and provide the location from which we are trying to import. Could you log the normalized path from here please packages/core/modules-sdk/src/loaders/module-provider-loader.ts |
Sorry, I don't know what you mean by this |
if you go in your node modules under |
Got this: I think it is prefixing to dist not src and that is the issue. I tried doing this: |
Added error logging (which should be handled by default btw) before the throw, here is an updated log:
|
Hello guys, can you please open a new issue with a repo that we can use for reproduction? Just want to make sure we are not mixing multiple things :) |
Bug report
Hi, the documentation is not clear so i base my provider in https://github.com/medusajs/medusa/blob/develop/packages/modules/providers/payment-stripe/src/index.ts
Describe the bug
I have my module config like this
I'm getting this error:
Error: Loaders for module PaymentModuleService failed: Unable to find module ./modules/payment-wompi -- perhaps you need to install its package?
What do i need to do so the Payment Provider Module works?
Thank you in advance
The text was updated successfully, but these errors were encountered: