# 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 thePayment
to settled state.
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
isCustomerInGroupPaymentChecker
as thePayment eligibility checker
, and then select theCustomerGroup
whose members are expected to be eligible for thisPaymentMethod
.Choose
settleWithoutPaymentHandler
asPayment handler
Click
Save
Test the plugin
- Place a test order. The
PaymentMethod
you created in theGetting Started
section should be listed undereligiblePaymentMethods
forCustomers
who belong to the designatedCustomerGroup
. For other customers, it should not be available.