#having trouble installing stripe plugin on medusa 2.6.1
20 messages · Page 1 of 1 (latest)
even my paypal doesn't show in payment provider list under regions lul. I think we should define it in the modules folder and define it as a service just like what I did in my manual payment
like this one
tried stripe and it displayed
can i see your medusa-config.ts?
yes
import { loadEnv, defineConfig } from '@medusajs/framework/utils'
import { DatabaseType } from "typeorm"
loadEnv(process.env.NODE_ENV || 'development', process.cwd())
// CORS when consuming Medusa from admin
const ADMIN_CORS = process.env.ADMIN_CORS || "http://localhost:7000,http://localhost:7001"
// CORS to avoid issues when consuming Medusa from a client
const STORE_CORS = process.env.STORE_CORS || "http://localhost:8000"
// Database URL (here we use a local database called medusa-development)
const DATABASE_URL =
process.env.DATABASE_URL || "postgres://localhost/medusa-development"
// Medusa uses Redis, so this needs configuration as well
const REDIS_URL = process.env.REDIS_URL || "redis://localhost:6379"
const plugins = [
'medusa-fulfillment-manual',
'medusa-payment-manual',
{
resolve: 'medusa-payment-stripe',
options: {
api_key: process.env.STRIPE_API_KEY,
webhook_secret: process.env.STRIPE_WEBHOOK_SECRET,
automatic_payment_methods: true,
capture: true,
},
},
]
const modules = {
eventBus: {
resolve: "@medusajs/event-bus-redis",
options: {
redisUrl: REDIS_URL
}
},
cacheService: {
resolve: "@medusajs/cache-redis",
options: {
redisUrl: REDIS_URL
}
},
}
/** @type {import('@medusajs/medusa').ConfigModule["projectConfig"]} */
const projectConfig = {
jwtSecret: process.env.JWT_SECRET || "xxxxxxxxx",
cookieSecret: process.env.COOKIE_SECRET || "xxxxxxxxxx",
store_cors: STORE_CORS,
database_url: DATABASE_URL,
admin_cors: ADMIN_CORS,
redis_url: REDIS_URL,
}
export default defineConfig({
projectConfig,
plugins,
modules,
})
well i got this
try updating your version to the latest. Theres a fix for plugins not resolving correctly for the admin
in the 2.7?
Yes
good didnt know
Hope that helps!
Have you tried PayPal?
I am implementing it rn but it doesn't reflect in my backend
No I just know of the issue through implementing a reviews plugin
Ohh okay2 thanks!