Building blocks for digital commerce
This plugin is compatible with versions >= 1.20.2 of @medusajs/medusa
.
1. Run the following command in the directory of the Medusa backend:
yarn add medusa-payment-tamara
2. Set the following environment variables in .env
:
TAMARA_TOKEN=YOUR_TAMARA_TOKEN
#this is the sandbox api set to xxxx for production
TAMARA_API=https://api-sandbox.tamara.co
# the redirecting url for the user
WEB_ENDPOINT="http://localhost:3000"
3. In medusa-config.js
add the following at the end of the plugins
array:
const plugins = [
// ...
{
resolve: `medusa-payment-tamara`,
options: {
tamara_token: process.env.TAMARA_TOKEN,
tamara_api: process.env.TAMARA_API,
web_endpoint: process.env.WEB_ENDPOINT
},
},
]