Where payments live
All payment configuration is managed in the Medusa admin:- Local development:
http://localhost:9000/app - Production:
https://api.<your-domain>/app
Authorize vs. capture
Medusa supports a two-step payment flow:- Authorize: The customer’s funds are held when they place the order.
- Capture: You collect the funds after the order is confirmed or shipped.
Configure a provider
1
Install the provider package
Inside
apps/medusa-backend, install the Medusa provider package for your chosen gateway. For example, Stripe, PayPal, or Adyen. See the Medusa payment providers documentation for the correct package name and version.2
Add credentials to the environment
Add the provider’s required environment variables to the per-environment
.env file at environments/<name>/.env. This keeps secrets out of the codebase and scoped to the correct environment.3
Enable the provider on a region
Open the Medusa admin, go to Settings → Regions, select the region you want to configure, and add the provider to the region’s payment providers list. Save the change. Or just ask Fox to enable the provider on the region.
4
Test in checkout
Visit the storefront at
http://localhost:3000 (dev) or your live domain, add a product to cart, and proceed to checkout. The payment option you enabled should appear.Capture from the admin
For providers that do not auto-capture, you must capture payment manually before fulfilling the order. Open the order in the Medusa admin and use the capture action on the order detail page. For the full fulfillment flow, see Orders.Refunds
Refunds are processed through the Medusa admin on the order detail page. After you issue a refund, the transactional email plugin sends the customer a notice if email is configured. See Email for setup details.Reference
- Medusa payment module documentation
- Medusa provider documentation (for Stripe, PayPal, Adyen, and other gateway-specific setup)
Orders
Learn the full order lifecycle from placement through fulfillment and capture.
Shipping & Tax
Configure shipping options and tax providers for accurate checkout totals.