Tamara payment gateway plugin for Medusa
npm install medusa-payment-tamara
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:
``bash`
yarn add medusa-payment-tamara
2\. Set the following environment variables in .env:
`bash`
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:
`jsmedusa-payment-tamara
const plugins = [
// ...
{
resolve: ,``
options: {
tamara_token: process.env.TAMARA_TOKEN,
tamara_api: process.env.TAMARA_API,
web_endpoint: process.env.WEB_ENDPOINT
},
},
]
---