Allow orders to be settled without payment for customers in a specific group, and various other payment related extensions
Vendure Payment Extensions
Official documentation here
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.
Create your first commerce experience with Vendure in less than 2 minutes
Vendure is a registered trademark. Our trademark policy ensures that our brand and products are protected. Feel free to reach out if you have any questions about our trademarks.
Documentation
Newsletter
Get the latest product news and announcements delivered directly to your inbox.