Overview
The document describes the process of installing and configuring Mokka module for CMS WooCommerce, which greatly simplifies the process of integrating with Mokka service for a partner.
Installation
The module can be manually installed in the admin panel by transferring the module files to the server. Download the WooCommerce Mokka module before starting the instructions.
Login to your website admin panel.
- Go to the menu "Plugins" -> "Add new".
-
In the top left corner click the button "Upload Plugin".
-
Upload the file with the plugin in ".zip" format and press "Install Now".
-
After the plugin has been uploaded, press the "Install Now" button.
-
After the successful installation, click the button "Activate plugin".
-
The plugin will appear in the menu: "WooCommerce"-> "Plugins"-> "Mokka payment".
Settings
- Go to the menu “WooComerce" -> "Mokka payment".
- The tab "API settings" will be displayed. Here you can fill the following parameters:
- Status - the actual state of the module: enabled or disabled.
- Test mode - the sandbox mode for testing and debugging. Must be unchecked for the production launch.
- Store ID and Secret key - parameters issued by Mokka team.
- Base URL address - the default URL for production Mokka connection.
- Store ID (Test mode) and Secret key (Test mode) - parameters issued by Mokka team for the sandbox mode for testing and debugging.
- Base URL address (Test mode) - the URL for connecting to the test environment. By default - https://stage-backend.mokka.ro
- Orders page - the link for a quick navigation to orders page in the administrative panel. Generated automatically, not a subject to change.
- Go to the tab "Store settings".
- Minimum Order Value - to be set up according to your tariff.
- Maximum Order Value - to be set up according to your tariff.
- Maximum perсent, % - the percentage of the amount that the client can pay by Mokka (by default 100%).
- Valid till (Hours:Minutes) - set up the same time as on the server where the site is located.
- Generate invoice after Mokka accepted payment - the setting for generating a receipt after approval of Mokka advance for the client.
- Show for all deliveries - the setting for displaying Mokka payment method at the checkout
- optional parameters:
- Sort Order - position for the payment in the list.
- Show for all deliveries - selecting will make the payment method available for all shipping options.
- Shipping methods – list of shipping options for which the payment method will be available.
- Go to the tab "Statuses" for mapping statuses values.
- Сanceled orders - the status that requests cancellation of the order from Mokka service.
- Finalized orders - the status that requests finalization of the order from Mokka service. Usually, this status is set after the shipment of the order is completed.
- New order - the status is applied to an order after checkout, for which a Mokka decision has not yet been received or the client has not completed checkout.
- Full returned orders - the status that requests a return of the order from Mokka service.
- Approved orders - the status is applied to the order after an approval from the payment system. The order has already been completed, but is not finalized yet.
- Declined orders -the status is applied to the order after a rejection from the payment system.
- Go to the tab "Checkout" to configure the visual appearance of the Checkout phase. You may skip this step if you don't mind using the default logos, embedded into the plugin package.
- Widget display type - selection of the displayed image.
- Uploaded Image - uploading the logo from your computer that will be visible on the checkout.
-
Image URL - uploading an alternative logo from the external URL.
-
Payment method title - the title for a payment method which is displayed on the checkout page. The default value is “Mokka - you sweet advance”.
-
Payment method title color - color of the title on the checkout.
-
Inactive payment method text - a message to be shown in the pop-up if the loan amount is greater than the maximum or less than the minimum value.
- Go to the tab "Widget & Popup"
- Widget display - determines where exactly to show the widget. Values:
- Product page
- Category page
- Maximum number of loan months - to be set up according to your tariff.
- Minimum number of loan months - to be set up according to your tariff.
- Widget display type - selection of the displayed template.
- optional parameters:
- Widget content - this element is used to modify widget HTML. The widget supports HTML tags.
- Popup content - this element is used to modify popup HTML. The popup supports HTML tags.
- Widget display - determines where exactly to show the widget. Values:
- The settings on the tab "Additional" are optional. They allow to set up a connection to Airbrake logging.
- Enable Airbrake error logging - enable errors logging via Airbrake. Default is disabled.
- Airbrake Project ID - project ID in Airbrake. Required if Airbrake errors logging is enabled.
- Airbrake Project Key - project key in Airbrake. Required if Airbrake errors logging is enabled.
- Send client related metadata to Revo Core - if this option is enabled the plugin sends Customer metadata to the Revo Core subsystem.
- Prefill fields - sends the user data (name, contacts, etc.) within the Registration and Checkout methods to fill in the registration form.
- Then scroll down and click "Save settings"
Testing
Checkout
- Add products to the cart to reach the required minimum amount.
- Go to the cart.
- Select "Mokka - advance payment" in the payment methods.
- Click "Checkout".
- A data entry form will open on the screen. Fill in all fields of the form. The phone number for approval on the test environment must match the mask +7 8881xxxxxx.
- Click "Checkout" and enter the confirmation code (always 1111 on a test environment).
- Select the payment schedule you are interested in and click the "Pay in advance" button.
Completion
- Go to the "Orders" section in the WordPress admin panel.
- Select a previously placed order by clicking the checkbox next to the order.
- In the "Actions" menu, select the status "Change status to completed".
- Click "Apply".
As a result, the order will be completed.
Cancellation
- Go to the "Orders" section in the WordPress admin panel.
- Select a previously placed order by clicking the checkbox next to the order.
- In the "Actions" menu, select the "Change status to canceled" status.
- Click "Apply".
As a result, the order will be canceled.
Refund
- Go to the "Orders" section in the WordPress admin panel.
- Open a previously placed order by clicking on its ID.
- Change the status of the order to "Refunded".
- Click "Update".
As a result, the order will be refunded.
Activation
After successfully installing the module and finishing the testing, activate the module so that the Mokka team can check the functionality and activate the service. To activate, follow the instructions:
- Pick the status "Enabled".
- Unselect the check box "Test mode".
- Press the "Save settings" button.
As a result, the payment method "Mokka - advance payment" will become available.
Contact Mokka support team at support@mokka.ro or your account manager. For activation, we will schedule a call for live testing of all functions and guidelines.
Uninstalling
- To uninstall the plugin go to "Plugins"-> "Installed Plugins" tab.
-
Find Mokka plugin in the list and click "Deactivate".
- Then click "Delete".