Vendure Payment Extensions
npm install @pinelab/vendure-plugin-payment-extensionsVendure Payment Extensions
Section titled “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
Section titled “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 handler -
Click
Save
Test the plugin
Section titled “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.
