Nova Money
Enable payments and financial services via Nova Money
Nova.Pay Medusa Plugin
A Medusa V2 plugin to integrate Nova.Pay into your store.
Features
- Payment Providers:
- Credit Card (Copy to clipboard
nova-pay-credit-card) - Pix (Copy to clipboard
nova-pay-pix) - Boleto (Copy to clipboard
nova-pay-bank-slip)
- Credit Card (Copy to clipboard
- Product Sync: Automatically syncs products to Nova.Pay whenever a product is created or updated in Medusa.
Installation
Install the package via npm or yarn:
123npm install @novamoney/nova-pay# oryarn add @novamoney/nova-pay
Configuration
Environment Variables
Add the following environment variables to your Copy to clipboard.env file:
1234NOVA_PAY_API_KEY=your_api_key_hereNOVA_PAY_CART_PAGE_ID=your_cart_page_uuid_hereNOVA_PAY_SUBDOMAIN=your_nova_pay_subdomain_hereNOVA_PAY_VERBOSE=true # Optional: enables sync logging
Medusa Config
Enable the plugin in your Copy to clipboardmedusa-config.ts file:
1234567891011121314151617181920// medusa-config.tsmodule.exports = defineConfig({// ...plugins: [// ... other plugins{resolve: "@novamoney/nova-pay",options: {apiKey: process.env.NOVA_PAY_API_KEY,subdomain: process.env.NOVA_PAY_SUBDOMAIN},},],// ...modules: [// ... other modules{resolve: "@medusajs/medusa/payment",options: {
Client-side Integration
When you initiate a payment using one of the Nova.Pay providers, the response will include a Copy to clipboardlink in the Copy to clipboarddata object of the payment session. You must redirect the customer to this URL to complete the payment.
Example (Next.js Storefront)
123456const handlePayment = async (paymentSession) => {if (paymentSession.data.link) {// Redirect to Nova.Pay checkoutwindow.location.href = paymentSession.data.link;}};
License
Licensed under the MIT License.

