Payer for WooCommerce

Introduction

Payer simplifies payments between companies. Their service for e-commerce helps create an amazing buying experience, that creates happy customers and increased revenue.

Payer offers a wide range of different payment solutions that you can easily use in your store.

Account with Payer

To use the Payer plugin you need an account with Payer. This will provide you with the different keys that you need for the plugin to work correctly. You can contact Payer and get more information about this here at https://www.payer.se/

Required WooCommerce settings

  • Make sure that you have enabled pretty permalinks in your WordPress installation. Otherwise callbacks from Payer back to your store won’t work and orders will not be updated with the correct order status/information.
  • Make sure that the WooCommerce callback API works. If you enter the following address in a browser – https://yourdomain.com/wc-api/Payer_Gateway – you should see a white page with -1 printed in the top of the page. If you get a 404 error message and have a multilingual plugin like Polylang installed, make sure to check the box Hide URL language information for default language in URL modification settings.

Installation

Login to your WordPress Admin page. Navigate to→ PluginsAdd new in the lefthand menu.

Press Upload Plugin, and select the zip-file from your computer.

Then press Ok and finally the button Install now.

Configuration

The following settings fields are all available for each Payer payment method (card, bank, invoice, installment, Swish, Einvoice and Masterpass). We use Card payment as an example here:

  1. Go to: WooCommerce > Settings > Checkout > Payer Card
  2. Enable Payer card payments by checking the Enable Payer Card checkbox.
  3. The Title and Description fields controls what the customer sees during checkout.
  4. The Icon URL field can be used to replace the default Payer icon.

 

The following fields should be entered in the Payer Card section but they do apply for all payment methods:

  1. Enter the Agent ID, Soap ID, Soap Password, Post key 1, Post key 2 & Rest key that you have received from Payer.
  2. Test mode – check this box if you have a test account and want to make purchases against Payers test server environment.
  3. Debug – check this box to log events for debugging.

 

Customization

You can change the title of any gateway by editing the title field in its settings.

The description field can be edited to show a text along with the Payment gateway on the checkout page. If you want to give more information to the customer.

The Icon URL field is used to change the icon. Simply put in a URL to the new icon that you wish to use, and it will replace the default one that comes with the plugin.

You can also choose to remove some payment gateways fully, except from Payer Card. To do this you need to add some definitions to your config.php file for WordPress. These are the available definitions that you can use:

define( 'UNSET_PAYER_BANK_PAYMENTS', true ) to remove Payer Bank.

define( 'UNSET_PAYER_DIRECT_INVOICE_PAYMENTS', true ) to remove Direct invoice.

define( 'UNSET_PAYER_EINVOICE_PAYMENTS', true ) to remove Einvoice.

define( 'UNSET_PAYER_INSTALLMENT_PAYMENTS', true ) to remove installments.

define( 'UNSET_PAYER_INVOICE_PAYMENTS', true ) to remove invoice.

define( 'UNSET_PAYER_MASTERPASS_PAYMENTS', true ) to remove Masterpass.

define( 'UNSET_PAYER_SWISH_PAYMENTS', true ) to remove Swish

Debugging

If the checkout is not showing after you have followed all the instructions, and you don’t see any error messages in the checkout page, we recommend that you temporarily enable WP_DEBUG. You can find more information about that here.

Payer integrates with the normal checkout of WooCommerce and should work with most other plugins with few issues.

We have tested the plugin with the following themes:

Storefront
Flatsome

If your theme is not on this list we recommend that you try the plugin first on a test store, and not in a live environment. If you need changes to be done then we recommend that you contact the developers behind your store.

We at Krokedil do not offer help with adapting your theme or plugin within regular support.