Installation

Two Magento Plugin ZIP file

Get your API key

  1. Go to two.inc and sign up with your company.
  2. You will receive an email with your API test keys. And as soon as you are ready, your production keys as well.
  3. Once you change out your test keys with your production keys, you are ready to offer your B2B customers the Two solution.

From Zip File

  • Download the plugin from our GitHub repo.

  • Unzip the file in the root path (i.e. public_html folder), and then the module source code will appear in app/code/Tillit/Gateway.

  • You can also unzip locally and transfer to a remote directory using an SFTP client (e.g. Cyberduck or FileZilla).

  • Go to the Magento 2 root directory and run the following commands

    php bin/magento setup:upgrade php bin/magento setup:static-content:deploy php bin/magento cache:flush
  • Check that the Two option has appeared in your Magento backend at Store > Configuration > Sales > Payment Methods.

Screenshot of Magento backend showing Two plugin

From Marketplace (Coming Soon)

Navigate to Marketplace > My Profile > My Products > Access Keys.

Screenshot of Magento backend showing access keys location

You will get a public key and a private key to install Magento 2 extensions.

Screenshot of Magento backend showing Magento 2 access keys

Next, navigate through the following steps to install via composer:

  • Find the Two plugin in the Magento marketplace (coming soon).
  • Navigate to your Magento project directory and update your composer.json file.
    composer require tillit/module-gateway
  • Run the below commands
    php bin/magento setup:upgrade php bin/magento setup:static-content:deploy php bin/magento cache:flush

Configuration

In your Magento Admin interface, navigate to Stores → Configuration → SALES → Payment Methods → Two.

Screenshot of Magento backend showing Two configuration
FieldDefault valueDescription
Enabled Two PaymentsNAWhether to show Two payment option in the checkout page.
TitleBusiness invoice in 30 daysEnter a title which is appearing on checkout page as payment method title.
SubtitleReceive the invoice via EHF and PDFEnter a sub title which is appearing on checkout page as payment method sub title.
Two Merchant short nameNAThe merchant name to use for your company in API calls to Two's Checkout API.
Choose your productFunded InvoiceNorwegian companies support both Funded and Direct Invoice.
UK Companes currently only support Direct Invoice.
Number of days on invoice14The default number of days to provide buyers in their terms.
API KeyNAAPI key to use in API calls to Two's Checkout API.
LogoNALogo will be displayed as Two Payment option in the checkout page.
ModeTestDetermines which Two Checkout API environment to make calls to.
Activate company name auto-completeYesWhether to allow customers to use Two's Search API to lookup their company names.
Activate company ID auto-completeYesWhether to allow customers to use Two's Search API to lookup their numerical company ID.
Finalize purchase when order is shippedYesWhether to allow shipped order status to be passed on to Two.
Pre-approve the buyer during checkout and disable Tillit if the buyer is declinedYesWhether to allow advanced checking if invoice payment is applicable as the payment method for the buyer.
Activate B2C/B2B check-out radio buttonYesWhether to allow different types of account (personal/business)
Note: Two will only be available to customers who have business type billing address.
Initiate payment to buyer on refundYes

In the Admin interface, navigate to System > Tools > Cache Management > Flush Cache.

Alternatively, run the following in the command line: php bin/magento cache:flush

Your Two payment gateway is now ready to use!

Disabling

If for any reason you'd like to temporarily disable the Two Magento plugin, please follow one of the below methods.

Disable via Command Line

Run the commands below:

php bin/magento module:disable Tillit_Gateway php bin/magento setup:upgrade php bin/magento setup:static-content:deploy php bin/magento cache:flush

Disable via Composer

Navigate to Store → Configuration → Sales → Payment Methods → Two and set to Disable.

Screenshot of Magento backend showing how to disable via composer

Uninstallation

Please follow one of the below methods to uninstall the Two Magento plugin.

Uninstall via Command Line

Run the commands below:

php bin/magento module:uninstall Tillit_Gateway php bin/magento setup:upgrade php bin/magento setup:static-content:deploy php bin/magento cache:flush

Uninstall via Composer

Run the commands below:

php bin/magento module:disable Tillit_Gateway composer remove -r tillit/module-gateway php bin/magento setup:upgrade php bin/magento setup:static-content:deploy php bin/magento cache:flush
Copyright © 2021 Tillit AS. All rights reserved.