Requirements

To use the tpay.com payment module for the Magento platform, it is mandatory that the runtime environment has the following components:

  1. Magento version min. 2.x with PLN currency enabled
  2. Installation files downloaded from: https://tpay.com/integracja-w-sklepach or composer program on your server
  3. PHP server version min 5.6

The module was built and tested on Magento 2.2 version

Manual installation

  1. Unpack the archive to disk. After unpacking, the "tpaycom" folder should be created.
  2. Send the "tpaycom" folder and its contents to the app/code directory of your Magento store. If the "code" folder does not exist, you should make one.
  3. After uploading the files, finish the installation from the console by typing the following commands
    php bin/magento module:enable tpaycom_magento2basic  
    php bin/magento setup:upgrade​

Composer installation

  1. At main Magento installation folder, type the following command to download module:

    composer require tpaycom/magento2basic
  2. type the following commands to enable the module:

    php bin/magento module:enable tpaycom_magento2basic  
    php bin/magento setup:upgrade

Configuration

  1. Go to store configuration tab Stores->Configuration.
  2. Navigate to payment settings tab in Sales -> Payment Methods.
  3. Choose tpay.com from the list and fill in required settings.


  4. Configure the following options:
    • Active – Choose “Yes”
    • Description – The payment gateway description shown on checkout page
    • Merchant ID – your merchant ID in tpay.com system.
    • Secure code – type in security code from Merchant Panel (Menu->Settings->Notifications->Security code).
    • Show payment channels on the front – Once you select this option, your payment list will appear on your store page. The customer will be redirected directly to the payment method selected. Otherwise, the customer will choose the payment method after redirecting to tpay.com.
    • Only online methods - By selecting this option, the customer will choose the payment method from among those that provide current accounting.
    • Redirect directly to bank - with this option selected, the customer will be redirected directly to bank login site instead of tpay.com payment panel.
    • BLIK level zero (optional) – allows customers to make BLIK payments on the store without any redirecting.
    • API key – API access key for an overview of API access generation, see this article
    • API password – API key password.
    • All or allowed countries – allows you to determine specific countries availability.
    • Allowed countries – List of countries for which tpay.com card payment gateway is to be available
    • Minimal amount for method - Minimum amount of payment for which the tpay.com gateway will be available
    • Maximal amount for method – Maximum amount of money for which the tpay.com gateway will be available
  5. After configuration click on "Save Config" at top right corner of site

Flushing Magento cache

After installing and configuring our payment gateway you should flush all Magento cache. Go to System->Cache Management tab nad click on "flush static files cache".

Then in the top right corner, you have to select "Flush Magento Cache"

Online refunds (production mode only)

You can create online refunds from order details view at Magento administration panel.

To do so:

  1. Navigate to Invoices tab and click on details of automatically generated invoice
  2. Choose "Credit Memo" option
  3. Fill in refund details and click on "Refund".