WooCommerce SEB Gateway

WooCommerce SEB Gateway allows your customers to securely check out using their SEB account.

Note: This product has been retired and is not for sale. Documentation is no longer being updated.

Requirements

↑ Back to top

  • Euro must be set as the store currency
  • An SEB account

Installation

↑ Back to top
  1. Download the .zip file from your WooCommerce account.
  2. Go to: WordPress Admin > Plugins > Add New and Upload Plugin with the file you downloaded with Choose File.
  3. Install Now and Activate the extension.
More information at: Install and Activate Plugins/Extensions.

Setup and Configuration

↑ Back to top

SEB credentials

↑ Back to top
Once you have signed a contract with SEB, you need to generate and exchange certificates with them. If you have already done this, skip to the next section. If not, here’s how you do it: First, you need to generate a private key, which is used to sign all requests to the bank. Then, you need to generate a certificate signing request (CSR) from your private key – this is sent to the bank. If you are using Windows, ensure that you have OpenSSL installed. On Linux/Mac, OpenSSL should already be present. Open Terminal/Shell/Command Line and run the following commands:
openssl genrsa -out private_key.pem 2048
openssl req -sha1 -new -key private_key.pem -out csr.pem
You are asked for a series of data for the certificate:
  • Country [AU]: 2-letter country code. One of EE, LV, LT. Example: EE
  • State or Province Name (full name) [Some-State]: your company state/province. Example: Harju maakond
  • Locality Name (eg, city) []: your company city/town/village. Example: Tallinn
  • Organization Name (eg, company) [Internet Widgits Pty Ltd]: Example: Nööbid & Kindad AS
  • Organizational Unit Name (eg, section) []: Can be left empty, but you can also enter “banklink” (without the quotes)
  • Common Name (e.g. server FQDN or YOUR name) []: the domain name of your store. Example: www.mysuperawesomestore.com
  • Email Address []: merchant’s (your) email address. Example: johndoe@example.com
  • A challenge password []: leave blank (press Enter)
  • An optional company name []: leave blank (press Enter)
As a result, you have 2 files in the directory you ran the commands from: private_key.pem, which contains your private key and csr.pem, which contains the certificate signing request (public key). You need to send the csr.pem file to SEB now and wait for their response. SEB will send you their public key and your Merchant ID – but it could take some time.
Protect your private key! Under no circumstances should you send or share with anyone. This is something that only you should have access to.
If you are having trouble using Terminal/Shell/Command Line, try generating the private key and CSR online. Note that this is not the recommended method to use – do this only at your own risk!

Extension settings

↑ Back to top
Go to: WooCommerce > Settings > Checkout > SEB.
SEB Gateway Settings
SEB Gateway Settings
  • Enable / Disable – Enable the gateway if you are ready to go live.
  • Title – Displayed to customers during checkout and on the Order Received page.
  • Description – Displayed under the title during checkout. Limited HTML is allowed.
  • Environment – Switch between “Test” and “Production” credentials. Enable “Test” to send transactions to the bank link test service.
  • Merchant ID – Sent to you by SEB. For Test mode, this is the Merchant ID for your bank link test service. Follow the steps below to get this.
  • Private Key – Private key you generated for SEB. For Test mode, this is the private key generated by your bank link test service. Follow the steps below to get this.
  • Private Key Password – Private key password if you used one (Production or Test).
  • Public Key – Public key / certificate for SEB in your country. SEB will provide it to you after signing a contract. For Test mode, this is the public key for your bank link test service. Follow the steps below to get this.
  • Debug Mode – Enable if you are having issues correctly processing transactions. You can either log API requests / responses directly to the checkout / thank you page, save them to the WooCommerce Error Log (found under WooCommerce > System Status > Logs) or both. All debugging messages are cleaned of sensitive information before display, but as a best practice, do not enable unless you are having issues with the plugin.

Test Mode

↑ Back to top
You can test the SEB gateway using the third-party Banklinks (for SEB Estonia) or Test Pay (for SEB Lithuania) services. These services allow you to create mock/test payments without having a contract with the bank. To set up testing for SEB Estonia, you need test credentials for your bank and the appropriate country from the Banklinks page.
  1. Click SEB Estonia Test
  2. Click Certificates
  3. Copy the following to the gateway settings and save:
    • Copy Merchant ID to Test Merchant ID field.
    • Copy Merchant’s private key to Test Private Key field.
    • Copy Bank’s certificate to Test Public Key field.
All test payments are publicly visible to everyone using the Banklinks service. If you need to keep your test payments (including the payment parameters and origin server) private, use the stand-alone version (Estonian only) instead.
To set up testing for SEB Lithuania, you need to create an account with Test Pay. Once logged in, generate certificates, create a “test shop” and get credentials.
  1. Generate a test certificate using the Test Pay Certificate Generation tool. Save the private key and certificate body in your somewhere in your computer.
  2. Download the SEB bank certificate from the list of certificates. This saves a file called seb.crt on your computer.
  3. Select My Shops in User Menu
  4. Select Add new store
  5. Enter something meaningful as the Store name, for example: SEB Lithuania Test
  6. Copy & paste the Store certificate that you generated in step 1 to the appropriate field.
  7. Copy & paste the Store private key (without password) that you generated in step 1 to the appropriate field.
  8. Copy & paste the Bank certificate that you downloaded in step 2. You can open the seb.crt file with a text editor, such as Notepad (Windows) or TextEdit (Mac OS) and simply copy it’s contents to the appropriate field.
  9. Select “SEB” bankas as the payment gateway
  10. Save – you should now be presented with Shop testing data
  11. Copy the following to WooCommerce SEB Gateway settings and save:
    • Copy VK_SND_ID to Test Merchant ID field.
    • Enter any name to the Test Recipient Name
    • Enter any IBAN account number to Test Recipient Account
    • Copy Private Key (without password), that you generated in step 1 to Test Private Key field.
    • Copy Bank’s certificate, that you downloaded in step 2 to Test Public Key field.

Usage

↑ Back to top
To check out using SEB, a customer must select this option on the checkout page:
SEB Checkout experience
SEB Checkout experience
When SEB is selected, the customer is directed offsite to SEB, where they can log in and complete payment.

Troubleshooting

↑ Back to top
Having trouble? Ensure that everything is set up correctly before posting a support request:
  1. Check that your Merchant ID, Private Key and Public Key are correct.
  2. Double-check that your Merchant ID, Private Key and Public Key are correct.
  3. Enable only WooCommerce and SEB using a WordPress default theme to see if the issue persists.
  4. Submit a support ticket and tell us what happened when you took these steps.

FAQ

↑ Back to top

WooCommerce 2.2 added the ability to process automatic refunds. Does this gateway support automatic refunds?

↑ Back to top
Unfortunately automatic refunds are not possible with SEB. We are following the developer documentation for updates and will add this to the roadmap if it becomes possible in the future.

Where can I find official SEB bank link documentation?

↑ Back to top
Each country has different documentation:

 

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.