@devx-vendure/vendure-plugin-comgate
v1.0.3
Published
Comgate Payment Gateway integration for Vendure.
Readme
Vendure Comgate Plugin
This plugin integrates Comgate Payment Gateway into Vendure. It provides a standard Vendure PaymentMethodHandler and exposes a webhook endpoint for Comgate's asynchronous payment callbacks.
Features
- Creates Comgate Transactions when the Vendure Order attempts checkout.
- Implements
settlePayment,cancelPaymentandcreateRefundmatching the VendurePaymentMethodHandlerspecification. - Exposes
POST /payments/comgate/webhookfor Comgate to reportPAIDorCANCELLEDstatuses.
Setup
- Make sure your workspace is set up correctly in
package.jsonto include@devx-vendure/vendure-plugin-comgate. - Add the Plugin to your
vendure-config.ts:
import { ComgatePlugin } from '@devx-vendure/vendure-plugin-comgate'
export const config: VendureConfig = {
// ...
plugins: [
// ...
ComgatePlugin,
],
}- Start your Vendure Server.
- Go to Settings -> Payment Methods -> "Create new payment method".
- In the dropdown, select "Comgate Payment Gateway".
- Fill in the required
merchantIdandsecretobtained from the Comgate Administration portal. - Enable
testModeif needed. - (Important) Point Comgate administration webhook settings to your public server URL:
https://<your-server-domain>/payments/comgate/webhook
