# Install this plugin
npm install @pinelab/vendure-plugin-payment-extensions
Vendure Payment Extensions
This Vendure plugin allows an Order to be settled without upfront payment.
isCustomerInGroupPaymentChecker: Verifies if the customer attached to an order belongs to a specified group to allow configured payment method.settleWithoutPaymentHandler: This handler simply transitions thePaymentto settled state.
Have a payment extension in mind? Create a Pull Request on our repository and we will maintain your feature in this plugin!
Getting started
- Add the plugin to your
vendure-config.ts
import { PaymentExtensionsPlugin } from '@pinelab/vendure-plugin-payment-extensions';
...
plugins: [
PaymentExtensionsPlugin
... // your other plugins
]
Start Vendure, log in, and navigate to Settings > Payment Methods
Choose
isCustomerInGroupPaymentCheckeras thePayment eligibility checker, and then select theCustomerGroupwhose members are expected to be eligible for thisPaymentMethod.Choose
settleWithoutPaymentHandlerasPayment handlerClick
Save
Test the plugin
- Place a test order. The
PaymentMethodyou created in theGetting Startedsection should be listed undereligiblePaymentMethodsforCustomerswho belong to the designatedCustomerGroup. For other customers, it should not be available.
Need help? Get In Touch