WOOCOMMERCE CVR PAYMENT GATEWAY DOCUMENTATION

Installation

  1. Upload the plugin file using the WordPress Plugin Installer
  2. Press Activate Plugin

License Activation

  1. Click the Plugin Activation Notification in the WordPress Administration
  2. Enter your License Key and the email address you registeret the license with
  3. Click Save Changes

Payment Gateway Activation

  1. Go to WooCommerce
  2. Go to Settings
  3. Click the Checkout Tab
  4. Click on CVR Number Payment in the top
  5. Check the box which says Enable/Disable
  6. Scroll to the bottom of the page
  7. Click Save Changes

Payment Gateway Settings

  1. Go to WooCommerce
  2. Go to Settings
  3. Click the Checkout Tab
  4. Click on CVR Number Payment in the top

Under the settings you can now change the messages displayed during checkout. The language files to translate the plugin is included in the wp-content/plugins/woocommerce-cvr-payment-gateway/languages folder.

We recommend using Loco Translate (free) for translating the WooCommerce CVR Payment Gateway directly in the WordPress Administration.

Automatic Procession of CVR Data from Nemhandelsregisteret and CVR Registeret with WooCommerce CVR Payment Gateway

WooCommerce CVR Payment Gateway gets the data about the entered CVR-Number from Nemhandelsregisteret and CVR Registeret, if you have a valid license key.

If the entered CVR-number exists in Nemhandelsregisteret the data from Nemhandelsregisteret will be attached to the order in WooCommerce.

If the entered CVR-number exists in CVR Registeret the data will be attached to the order in WooCommerce.

Frequently Asked Questions about the Integration

First of all verify that you have registered your license and it’s activated for the WooCommerce EAN Payment Gateway plugin.

If you have a verified and active license and the data isn’t showing, it could be because the EAN number isn’t registered in the Nemhandelsregisteret, to check if it is refer to the section “Manual Procession of E-Invoicing (E-faktura) with WooCommerce EAN Payment Gateway”.

If the data is in Nemhandelsregisteret but still isn’t showing, contact us about it. Please provide your email and license key in the information you send to us.

Woocommerce EAN Payment Gateway Nemhandelsregisteret Data

To get the data for an order which has already been submitted to your WooCommerce webshop, please use the “Refresh CVR Data” button for the order(s) you wish to get the CVR Data for.

First of all verify that you have registered your license and it’s activated for the WooCommerce CVR Payment Gateway plugin.

If you have a verified and active license and the data isn’t showing, it could be because the CVR number isn’t registered in the CVR Registeret. Verify that the CVR Number exists by searching for it through the Virk.dk web interface.

If the data is in Virk.dk but still isn’t showing, contact us about it. Please provide your email and license key in the information you send to us.

To get the data for an order which has already been submitted to your WooCommerce webshop, please use the “Refresh CVR Registeret Data” button for the order(s) you wish to get the CVR Data for.

The API will refresh the data from Nemhandelsregisteret every 24 hours. Thus, if someone submitted a new CVR Number to Nemhandelsregisteret, it could be up to 24 hours before it’s fully registered through the API.

Note: that the orders won’t refresh the data automatically, you have to request a manual refresh of the CVR data for an order.

The API will refresh the data from CVR Registeret on request. Thus, if you request a refresh you will be getting the current live data from CVR Registeret for the requested CVR Number.

Note: that the orders won’t refresh the data automatically, you have to request a manual refresh of the CVR data for an order.

The API refreshes all valid licenses every 30 minutes, thus if you just bought a license or upgraded your license, it may be up to 30 minutes before you can get and refresh CVR data from the API.

Note: We do this because of caching and load on the system so everyone will have a more pleasant and fast experience 🙂

Help! I can’t find the Refresh CVR Data Button

As of the lastest version of WooCommerce changes have been made by WooCommerce to the order screen so the Actions column isn’t visible by default.

To enable the action column

  1. Go to Screen Options
  2. Put a checkmark in Actions
  3. Click Apply

I want to add a handling fee for CVR Payments

As EAN Payments require manual handling, you may wish to add a fee to the order.

To do so add the following code to you functions.php file in the active theme.

You’ll have to change the following:

The text EAN Handling Fee in line 6, to the desired text for the handling fee

$fee_title = __(‘CVR Handling Fee‘, ‘woocommerce-cvr-payment-gateway’);

The number 50 in line 7, to the desired value for the handling fee

$ean_handling_fee = 50;

I want to add / remove VAT for the handling fee

To add VAT to the handling fee, change line 25 to

WC()->cart->add_fee( $fee_title$cvr_handling_feetrue$fee_tax_class );

To remove VAT from the handling fee, change line 25 to

WC()->cart->add_fee( $fee_title$cvr_handling_feefalse$fee_tax_class );

Controling the order status

If you want to change the default order status for orders placed with the EAN Payment Gateway go to WooCommerce > Settings > Checkout > CVR Payment and change the order status setting.

Decline the user to place an order with CVR Payment, if the entered EAN number does not validate from Nemhandelsregisteret and/or CVR Registeret.

If you want to decline users to place an order that doesn’t have a CVR number that exists in Nemhandelsregisteret and/or CVR Registeret, you can enable this setting through WooCommerce > Settings > Checkout > CVR Payment

NOTICE: This option requires you to have a valid and enabled license.

Fill in the form below and we'll get back to you.