#having trouble installing stripe plugin on medusa 2.6.1

20 messages · Page 1 of 1 (latest)

gray prawn
#

no matter what I do it doesnt appear in the payment provider list under regions. please send help!!

gusty glade
#

like this one

gusty glade
#

tried stripe and it displayed

#

can i see your medusa-config.ts?

gray prawn
#

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,
})

gusty glade
#

try this one

gray prawn
#

well i got this

ebon cloak
#

try updating your version to the latest. Theres a fix for plugins not resolving correctly for the admin

gray prawn
#

in the 2.7?

ebon cloak
#

Yes

gray prawn
#

good didnt know

ebon cloak
#

Hope that helps!

gusty glade
#

I am implementing it rn but it doesn't reflect in my backend

ebon cloak
#

No I just know of the issue through implementing a reviews plugin

gusty glade
#

Ohh okay2 thanks!