Skip to content
  1. Extras
  2. mspWebPay

mspWebPay

Getting started

mspWebPay module is available in the MODX Simple Dream store.

To accept payments via WebPay, submit an application for registration in the system first.

You can get help with payment module integration through technical support or directly from the developer in Minsk.

WebPay setup

Important

Use only the test environment to verify the payment mechanism.

You need the login and password issued after registration. Log in to the control panel and perform initial setup.

Billing ID is needed for component setup in MODX admin. Note it down. Fill the rest according to the form requirements.

Configure the SMTP server for payment notifications to customers. Login and password are the same as the control panel.

You can also set the default payment site language (can be overridden in MODX).

Important — Secret key. Create a strong one and save it. Note it down, as it's needed for component setup in MODX admin.

Fill the rest as needed.

Basic WebPay setup is complete. For advanced panel settings, see the WebPay manual or contact WebPay support.

Package installation and setup in MODX

Enter credentials during installation to start working with WebPay in MODX.

  1. Store identifier — the Billing ID you noted.
  2. WebPay login — from WebPay control panel, issued after registration.
  3. WebPay password — from WebPay control panel, issued after registration.
  4. Secret key — the complex key you created and saved in WebPay control panel.

You can skip this step and fill in the data later in system settings. After installation, enable the payment method in miniShop2 settings and add it to the required delivery method.

To switch from test to production, change system setting ms2_payment_webpay_developer_mode from "Yes" to "No".

System settings reference

KeyNameDefaultDescription
ms2_payment_webpay_versionPayment form version2Version 2 is always used; no need to change
ms2_payment_webpay_loginWebPay loginLogin issued at WebPay registration
ms2_payment_webpay_passwordWebPay passwordIssued with the login. Both are used for payment verification requests.
ms2_payment_webpay_secret_keySecret keySet in WebPay control panel. Used to sign payment requests and verify payments. Use a strong key.
ms2_payment_webpay_store_idStore identifier in WebPayYour store ID. If wrong, payments go elsewhere. Always shown in WebPay panel.
ms2_payment_webpay_currencyPayment currencyBYRIn test mode only Belarusian rubles. With a contract you can choose the currency and enter its ISO 4217 code.
ms2_payment_webpay_languageWebPay languagerussianWebPay supports Russian and English: russian or english
ms2_payment_webpay_checkout_urlCheckout URLsecure.webpay.byURL where customers are sent for payment. Usually no change needed.
ms2_payment_webpay_gate_urlPayment verification URLbilling.webpay.byURL for payment verification requests. Usually no change needed.
ms2_payment_webpay_developer_modeTest payment modeYesIn this mode all requests go to WebPay test URLs. If disabled, payments run in production. Disable only after testing and after WebPay support confirms your store is in production.
ms2_payment_webpay_success_idWebPay success page0Page to redirect after successful payment. Recommended: cart page.
ms2_payment_webpay_failure_idWebPay failure page0Page to redirect after payment refusal. Recommended: cart page.