payment node bundles the complete payment configuration of the shop, including individual payment methods (display, rules) and payment providers such as PayPal, Stripe or Computop.
payment* - Basic structure
The basic structure of the payment node is shown below:
| Parameter | Description |
|---|---|
payment | Controls which payment methods are offered in the shop. |
computopHosted | Configures the connection to Computop. |
payPalCheckout | Configures the connection to PayPal Checkout. |
payPalPlus | Configures the connection to PayPal Plus. |
stripe | Configures the connection to Stripe. |
transactionSettings | Centrally defines which functions are supported by the payment providers (e.g. refund, manual, capturing). |
payment.computopHosted - Computop Hosted Payments
With payment.computopHosted Computop can be integrated as a hosted payment page. The node controls, for example, operating mode (live / test), encryption and language / template of the payment page.
Example configuration (payment.computopHosted.creditcard)
| Parameter | Type | Description |
|---|---|---|
capturingMode | enum | Allowed values: auto = the payment is verified and collected directly in one step. manual = the amount is only reserved during checkout but not yet charged. |
chDesc | string | Text that appears for the payer (e.g. on the card statement). |
encryption | enum | Allowed values: aes = modern encryption option. blowfish = older encryption option still supported. |
hmacKey | string | Secret key for data integrity checks against Computop. |
hostedCheckBoxDefaultChecked | bool | Sets a consent checkbox provided by Computop to active or inactive (true / false). |
hostedTemplateName | string | Name of the template for the hosted Computop payment page. |
id | string | Unique identifier of the payment method (e.g. creditcard). Freely selectable. |
languageCode | string | Language of the hosted page (e.g. de, en). Empty = Computop default. |
linkValidForSeconds | int | Validity period of the payment link in seconds. |
mode | enum | Operating mode of the Computop integration. Allowed values: - test = for sandbox tests. - live = used in production. |
passCredentialOnFile | bool | Marks “card data on file” for follow-up transactions, if supported. |
pwLarge | string | Additional password according to Computop specification. The password is used for encrypted transmission. |
sendIPAddr | bool | Sends the customer IP address to Computop. |
sendIPZone | bool | Sends the zone derived from the IP (e.g. country / region) to Computop. |
sendZone | bool | Sends the shop zone (e.g. delivery zone) to Computop. |
totalSumAddition | float | Fixed surcharge / discount in currency units on the total sum of the payment method (e.g. 0.30). 0 = no surcharge / discount. Only possible if capturingMode is manual. |
uid | string | Merchant / account ID at Computop. |
payment.payment - Define payment methods
The payment.payment node combines all payment methods of the shop. Here you can define, for example, whether a payment method is active, how it should be named and presented in the checkout, which provider serves it and which rules apply.
Example configuration (payment.payment.paypalCheckout)
| Parameter | Type | Description |
|---|---|---|
active | bool | Turns the payment method in the checkout on / off. |
id | string | Unique identifier of the payment method, e.g. paypalCheckout. |
name | string | Display name in the checkout, e.g. “PayPal”. |
orderText (coming soon) | string | Technical handover value for connected third-party systems exported with the order. |
labels (coming soon) | list (string) | Optional short label for the payment method that can be displayed as a hint in the checkout. |
type (coming soon) | string | Describes the type of payment processing and helps with the display in the checkout. Common values are: online — payment runs via a provider. offline — payment is handled manually. |
onlineClearing | singleService | Links the payment method to a specific online payment engine and thus activates the real-time payment flow. Target: payment |
provider (coming soon) | string | Technical provider key (e.g. stripe). |
image (coming soon) | string | Icon / logo URL for the payment method. |
displayPaymentTypes | list (object) | This parameter allows you to store multiple entries with their own name, icon, image or description for a payment method. This is particularly relevant when, for example, payment providers like Stripe are directly configured as payment methods but the contained payment options are to be presented separately outside of the order process — for example in the footer or on a payment methods information page. The display of the contained payment options within the order process is usually handled by the respective provider. The following properties can be set per entry: - name — display name of the payment option. - image — path or URL to an image / icon of the payment option. - description — description text of the payment option. The output in the template is done via the variable of the $wsConfig module, through which the configured entries can be displayed in the frontend at the desired position. |
validations | multiService | Rules and checks for the availability of a payment method (e.g. paymentValidation.voucherDeny — blocks the payment method for voucher baskets, paymentValidation.userAgent — restricts the payment method to certain devices or browsers). More under: Validation and check services. Target: paymentValidation |
discount (coming soon) | float | Discount / surcharge in currency units (e.g. 2.00 — customer pays €2 less with this payment method). |
description | string | Longer description / notes about the payment method. |
freeFields | list (string) | Free fields (e.g. to capture additional information for invoice purchase, such as date of birth or company details). Currently used only for Computop. |
payment.payPalCheckout - PayPal Checkout configuration
The payments.payPalCheckout node configures the PayPal Checkout in the shop. This includes, for example, activation, the operating mode (live / test mode) and the language.
Example configuration
| Parameter | Type | Description |
|---|---|---|
active (coming soon) | bool | Turns PayPal Checkout on / off. |
payerId | string | PayPal merchant ID of the merchant account. |
dummyProductAddition | string | Optional additional text for item names if PayPal requires a minimum input (e.g. placeholder for empty names). |
denyPendingPayments | bool | true — orders with the PayPal status “pending” are rejected or not continued. false — “pending” is allowed. |
brandName | string | Merchant name that is displayed. |
languageCode | string | Display language for PayPal (e.g. de-DE, en-US). |
logoUrl | string | URL to a logo for display in the PayPal checkout. |
customerServiceInstructions | list (string) | Optional customer notes that can be displayed in the PayPal context. |
mode | enum | Operating mode of the PayPal checkout. sandbox — test mode. live — production mode. Default: sandbox |
expressCheckoutAllow | bool | Allows PayPal Express (direct-buy buttons, e.g. in the basket or on the product). Default: false |
payment.payPalPlus - PayPal Plus configuration
payment.stripe - Stripe configuration
The payment.stripe node configures Stripe as a payment service provider. This includes, for example, activation, the operating mode (live / test mode) and the language.
Example configuration
| Parameter | Type | Description |
|---|---|---|
active | bool | Turns the Stripe connector on / off. |
mode | enum | Operating mode of Stripe. sandbox — test mode. live — production mode. Default: sandbox |
targetAccount | string | Stripe account (e.g. account ID) to which payments are booked. |
autoRefundOnError | bool | Enables the automatic refund if an error occurs during order processing on the WEBSALE side. Orders that have already been paid but are invalid are automatically refunded. If the option is disabled, such cases must be refunded manually in Stripe. Default: true |
savedPaymentMethods | object | Control of the stored payment methods. |
displaySavedPaymentMethods | bool | Display already stored payment methods in the checkout. |
maxDisplayedSavePaymentMethods | int | Maximum number of stored payment methods to be displayed. Default: 3 |
paymentMethodsAllowSave | bool | Customers are allowed to save new payment methods. |
paymentMethodsAllowDelete | bool | Customers are allowed to delete stored payment methods. |
payment.transactionSettings - Transaction settings (global)
The payment.transactionSettings node defines which actions can be carried out in the store backend for payments — e.g. refunds, cancellation, updating the status or capturing the amount.
For each payment provider it is configured whether the respective action is allowed and which inputs are requested for it.
Example configuration
| Parameter | Type | Description |
|---|---|---|
clearers | list (object) | List of connected payment processors for which transaction settings are to be configured. |
name | string | Technical name of the provider (e.g. paypalCheckout, stripe). |
options | list (object) | Defines per provider the allowed actions and their input fields. |
name | enum | Possible options: refund, cancel, refresh, capture. |
active | bool | Enables / disables the action in the store backend. |
name | string | Field name (e.g. amount). |
type | string | Data type of the field (e.g. string, int). |
required | bool | Defines whether it is a required field for the action. |
payment.* - Validation and check services
The predefined validation and check services for the payment node are used in validations and services. An overview can be found here: Validation and check services