The production-ready Medusa DTC Starter is outRead the announcement
P

Payment

Medusa Payment module

Included in @medusajs/medusa, no separate install needed
Category
Built by
Version
2.22.4
Last updated
7 hours ago
Monthly downloads
Loading downloads

Medusa logo

@medusajs/payment

Documentation | Website

Building blocks for digital commerce

Medusa is released under the MIT license. PRs welcome! Discord Chat Follow @medusajs

Payment Module for Medusa: manages payment collections, payment sessions, payments, captures, refunds, refund reasons, account holders, and payment providers. Use it to process payments for carts, orders, or any resource through pluggable payment providers. It ships with and is registered by default, so Medusa applications don't install it directly.

At a glance

Package
TypeCommerce Module
Module key ()
Registered by defaultYes
Import from

Features

  • Group payment sessions and payments for a resource in a payment collection.
  • Authorize, capture, and refund payments, with refund reasons.
  • Store account holders to save customers' payment methods with a provider.
  • Handle provider webhook events.

Payment providers

The module delegates payment processing to Payment Module Providers, registered through the option. A system provider () is always registered for manual payments.

Official providers in this repository:

Installation

No installation needed. The module is included in and registered by default.

Usage

Register payment providers in :

Configuration

OptionTypeDescriptionDefault
Payment Module Providers to register.

Resources