medusa-payment-tap v1.1.6
Tap
Receive payments on your Medusa commerce application using Tap.
If you are not familiar with Medusa, you can learn more on the project web site.
Medusa is a set of commerce modules and tools that allow you to build rich, reliable, and performant commerce applications without reinventing core commerce logic. The modules can be customized and used to build advanced ecommerce stores, marketplaces, or any product that needs foundational commerce primitives. All modules are open-source and freely available on npm.
This plugin is under development and should be considered experimental.
Breaking changes are very likely to occur.
Features
- Authorize payments on orders from any sales channel.
- Capture payments from the admin dashboard.
- Support for Webhooks.
Prerequisites
How to Install
1. Run the following command in the directory of the Medusa backend:
npm install medusa-payment-tap
2. Set the following environment variables in .env
:
TAP_AUTH=<SECRET_KEY>
3. In medusa-config.js
add the following at the end of the plugins
array:
const plugins = [
// ...
{
resolve: `medusa-payment-tap`,
options: {
Authorization: process.env.TAP_AUTH,
},
},
]
Test the Plugin
1. Run the following command in the directory of the Medusa backend to run the backend:
npm run start
2. Enable Tap in a region in the admin. You can refer to this User Guide to learn how to do that. Alternatively, you can use the Admin APIs.