Skip to main content

Overview

Datatrans Payment plugin provides an integration with the Datatrans Payment Gateway, which allows to accept payments from various payment methods.

Currently, the following payment methods are supported:

  • Visa
  • Mastercard
  • American Express
  • PostFinance Card
  • Twint

Configuration

To be able to use this plugin, you need to set environment variables in your .env.local file.

.env.local
DATATRANS_API_URL=
DATATRANS_PAY_URL=
DATATRANS_USERNAME=
DATATRANS_PASSWORD=
DATATRANS_WEBHOOK_HMAC=
DATATRANS_WEBHOOK_CODE= # Custom code that will be used to verify the request

Events

The following events are emmited:

  • UpdatePaymentCardToStoremanagerEvent - This event is emitted when the payment card is created. CustomerPaymentCardUpdateStoremanagerSubscriber listens to this event and creates the payment card in the store manager.