Payment Module
The Payment Module is the @medusajs/payment
NPM package that provides payment-related features in your Medusa and Node.js applications.
How to Use Payment Module's Service#
You can use the Payment Module's main service by resolving from the Medusa container the resource Modules.PAYMENT
imported from @medusajs/utils
.
For example:
Features#
Add Payment Functionalities to Any Resource#
The Payment Module provides payment functionalities that allow you to process payment of any resource, such as a cart.
All payment processing starts with creating a payment collection.
Authorize, Capture, and Refund Payment#
The Payment Module provides essential features to receive and handle payments, including authorizing, capturing, and refunding payment.
Integrate Third-Party Payment Providers#
Use payment providers like Stripe to handle and process payments.
Handle Webhook Events#
The Payment Module allows you to handle webhook events from third-party providers and process the associated payment.
Configure Payment Module#
Refer to this documentation for details on the module's options.