VeryPay
Receive payments on your Medusa commerce application using VeryPay.
Features
- Authorize payments on orders from any sales channel.
- Capture payments from the admin dashboard.
- View payment analytics through VeryPay's dashboard.
- Ready-integration with Medusa's Next.js starter storefront.
- Support for Webhooks.
Prerequisites
How to Install
1. Run the following command in the directory of the Medusa backend:
1npm install medusa-payment-verypay
2. Set the following environment variables in Copy to clipboard
.env
:1234VERYPAY_SANDBOX=trueVERYPAY_CLIENT_ID=<CLIENT_ID>VERYPAY_CLIENT_SECRET=<CLIENT_SECRET>VERYPAY_AUTH_WEBHOOK_ID=<WEBHOOK_ID>
3. In Copy to clipboard
medusa-config.js
add the following at the end of the Copy to clipboardplugins
array:123456789101112const plugins = [// ...{resolve: `medusa-payment-verypay`,options: {sandbox: process.env.VERYPAY_SANDBOX,client_id: process.env.VERYPAY_CLIENT_ID,client_secret: process.env.VERYPAY_CLIENT_SECRET,auth_webhook_id: process.env.VERYPAY_AUTH_WEBHOOK_ID,},},]
Test the Plugin
1. Run the following command in the directory of the Medusa backend to run the backend:
1npm run start
2. Enable VeryPay 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.
3. Place an order using a storefront or the Store APIs. You should be able to use Stripe as a payment method.