Allow orders to be settled without payment for customers in a specific group, and various other payment related extensions
npm install @pinelab/vendure-plugin-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 the Payment
to settled state.vendure-config.ts
Start Vendure, log in, and navigate to Settings > Payment Methods
Choose isCustomerInGroupPaymentChecker
as the Payment eligibility checker
, and then select the CustomerGroup
whose members are expected to be eligible for this PaymentMethod
.
Choose settleWithoutPaymentHandler
as Payment handler
Click Save
PaymentMethod
you created in the Getting Started
section should be listed under eligiblePaymentMethods
for Customers
who belong to the designated CustomerGroup
. For other customers, it should not be available.