Skip to content

Commit

Permalink
Align titles (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebekaburnett authored Jun 7, 2024
1 parent 1b65bc8 commit 1605fb8
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 42 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- START_METADATA
---
title: Vipps/MobilePay Payment Module for Adobe Commerce
title: Vipps/MobilePay Payment Module for Adobe Commerce / Magento
sidebar_label: Introduction
sidebar_position: 1
hide_table_of_contents: true
Expand All @@ -10,7 +10,7 @@ pagination_prev: null
---
END_METADATA -->

# Vipps/MobilePay Payment Module for Adobe Commerce
# Payment module for Adobe Commerce / Magento

![Support and development by Vaimo ](./docs/images/vaimo.svg#gh-light-mode-only)![Support and development by Vaimo](./docs/images/vaimo_dark.svg#gh-dark-mode-only)

Expand All @@ -26,9 +26,12 @@ Vipps MobilePay offers a familiar and convenient buying experience that can help

Vipps and MobilePay are used by large and small companies. From years of shopping safely with Vipps/MobilePay, customers trust their personal information will remain secure. Businesses have the reassurance of our advanced fraud protection and payment protection policy.

About [Adobe Commerce](https://experienceleague.adobe.com/en/browse/commerce).

This plugin is available for download at
[https://github.com/vippsas/vipps-magento/releases](https://github.com/vippsas/vipps-magento/releases).


## Documentation

The [user guide](./docs/documentation.md) contains:
Expand All @@ -38,4 +41,4 @@ The [user guide](./docs/documentation.md) contains:
* [Debugging](./docs/documentation.md#enable-debug-mode--requests-profiling)
* [Customization](./docs/documentation.md#customization)

See also the [Frequently asked questions](./docs/FAQ.md) page.
See also [Frequently asked questions](./docs/FAQ.md).
4 changes: 2 additions & 2 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ END_METADATA -->
## How do I capture an order?

When *Payment Action* is set to *Authorize* and *Capture*, the invoice is created automatically in Adobe Commerce. In such a case, the *Invoice* button does not appear, and the order is ready to ship.
For more details about capturing orders, refer to [Creating an Invoice](https://experienceleague.adobe.com/en/docs/commerce-admin/stores-sales/order-management/invoices#create-an-invoice).
For more details about capturing orders, refer to [Adobe Commerce: Creating an Invoice](https://experienceleague.adobe.com/en/docs/commerce-admin/stores-sales/order-management/invoices#create-an-invoice).

## How do I partially capture an order?

Expand All @@ -27,7 +27,7 @@ Otherwise, the refund should be finished first. This Vipps/MobilePay Payment mod

## How do I refund an order?

For orders refunding Adobe Commerce propose [Credit Memo](https://experienceleague.adobe.com/en/docs/commerce-admin/stores-sales/order-management/credit-memos/credit-memos) functionality.
For orders refunding Adobe Commerce propose [Adobe Commerce: Credit Memo](https://experienceleague.adobe.com/en/docs/commerce-admin/stores-sales/order-management/credit-memos/credit-memos) functionality.
Credit Memo allows you to make a refund for captured transaction.

## How do I partially refund an order?
Expand Down
75 changes: 38 additions & 37 deletions docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ pagination_prev: null
---
END_METADATA -->

# User Guide
# Payment Module User Guide

This is the guide for installing and configuring *Vipps/MobilePay Payment Module for Adobe Commerce* (the *Payment module*).

## Prerequisites

* Adobe Commerce installed ([Adobe Commerce 2.4.*](https://experienceleague.adobe.com/en/docs/commerce-operations/release/notes/adobe-commerce/2-4-0))
* Adobe Commerce installed ([Adobe Commerce 2.4.0](https://experienceleague.adobe.com/en/docs/commerce-operations/release/notes/adobe-commerce/2-4-0)) or later.
* [Adobe Commerce System Requirements](https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/system-requirements.html)
* SSL must be installed on your site and active on your checkout pages.
* You must have a Vipps MobilePay merchant account in the country . [Apply for services](https://developer.vippsmobilepay.com/docs/knowledge-base/applying-for-services/).
* As with *all* Adobe Commerce extensions, it is highly recommended backing up your site before installation and to install and test on a staging environment prior to production deployments.
* You must have a Vipps MobilePay merchant account in the country (see [Apply for services](/docs/knowledge-base/applying-for-services/)).
* As with all Adobe Commerce extensions, it is highly recommended backing up your site before installation and to install and test on a staging environment prior to production deployments.
* Supported protocols HTTP1/HTTP1.1
* Adobe Commerce relies on the [Zend Framework](https://framework.zend.com), which does not support HTTP/2.
* HTTP/1.1 must therefore be "forced", typically by using [CPanel](https://api.docs.cpanel.net/) or similar.
Expand All @@ -33,41 +35,41 @@ END_METADATA -->

## Configuration

The Vipps/MobilePay Payment module can be easily configured to meet business expectations of your web store. This section will show you how to configure the extension via the Adobe Commerce Admin Panel.
The Payment module can be easily configured to meet business expectations of your web store. This section will show you how to configure the extension via the Adobe Commerce Admin Panel.

1. From Adobe Commerce, navigate to *Stores* > *Configuration* > *Sales* > *Payment Methods* section.
1. On the *Payments Methods* page, the *Vipps MobilePay* method should be listed together with other installed payment methods in a system.
1. By clicking the *Configure* button, all configuration module settings will be shown.
1. Once you have finished the configuration, click *Close* and *Save* button.
1. [Clear Adobe Commerce Cache](https://experienceleague.adobe.com/en/docs/commerce-operations/configuration-guide/cli/manage-cache).


### Add a separate connection for Vipps MobilePay resources

These settings are required to prevent the loss of profiles when Adobe Commerce reverts invoice or refund transactions.

* Duplicate the `default_connection` in `app/etc/env.php` and name it 'vipps'. It should look like:

```php
'vipps' => [
'host' => 'your_DB_host',
'dbname' => 'your_DB_name',
'username' => 'your_user',
'password' => 'your_password',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;',
'active' => '1',
],
```

* Then, add the following configuration to the `resource` array in the same file:

```php
'vipps' => [
'connection' => 'vipps',
],
```
1. Duplicate the `default_connection` in `app/etc/env.php` and name it 'vipps'.

It should look like:

```php
'vipps' => [
'host' => 'your_DB_host',
'dbname' => 'your_DB_name',
'username' => 'your_user',
'password' => 'your_password',
'model' => 'mysql4',
'engine' => 'innodb',
'initStatements' => 'SET NAMES utf8;',
'active' => '1',
],
```

2. Then, add the following configuration to the `resource` array in the same file:

```php
'vipps' => [
'connection' => 'vipps',
],

## Settings

Expand All @@ -86,7 +88,7 @@ Basic Settings include:

* *Environment* - Vipps MobilePay API mode, which can be *Production* or *Develop*.
* *Payment Action* - *Authorize* (process authorization transaction; funds are blocked on customer account, but not withdrawn) or *Capture* (withdraw previously authorized amount).
* *Debug* - Log all actions with this Vipps/MobilePay Payment module into `{project_root}/var/log/vipps_debug.log` file *(not recommended in production mode)*.
* *Debug* - Log all actions with this Payment module into `{project_root}/var/log/vipps_debug.log` file *(not recommended in production mode)*.
* *Order Status* - Default order status before redirecting back to Adobe Commerce. Can be *Pending* or *Payment Review*.
* *Request/Response Profiling* - Log all requests/responses to Vipps MobilePay API into `vipps_profiling` table.
* *Merchant Serial Number* - ID number for the sales unit.
Expand All @@ -101,7 +103,7 @@ see [API keys](https://developer.vippsmobilepay.com/docs/knowledge-base/api-keys

### Checkout Settings

The Vipps/MobilePay payment will be unavailable when disallowed shipping methods are selected on checkout. These methods are also unavailable on the Express Checkout page.
The Vipps MobilePay payment will be unavailable when disallowed shipping methods are selected on checkout. These methods are also unavailable on the *Express Checkout* page.

![Screenshot of Checkout Settings](images/checkout_settings.png)

Expand Down Expand Up @@ -158,11 +160,8 @@ Here is a diagram of the process:

![Screenshot of Quote Processing Flow](images/quote-monitoring-flow.png)


## Quote Monitoring Tool

From version 1.2.1, we released *Quote Monitoring*.

Quote Monitoring simplifies detection of failed order placement and identifies the root causes of failures.

The monitoring tool is located under *System* > *Vipps Payment* > *Quote Monitoring*.
Expand All @@ -186,12 +185,12 @@ If you have experienced any issue with Vipps MobilePay, try to enable *Request P

![Screenshot of Vipps MobilePay Configuration Area](images/vipps_basic.png)

After that, all information related to the Vipps/MobilePay payment module will be stored into two files:
After that, all information related to the Payment module will be stored into two files:

* `{project_root}/var/log/vipps_exception.log`
* `{project_root}/var/log/vipps_debug.log`

*Requests Profiling* is a page in the Adobe Commerce *Admin panel* that helps you to track a communication between Vipps MobilePay and Adobe Commerce.
*Requests Profiling* is a page in the Adobe Commerce that helps you to track a communication between Vipps MobilePay and Adobe Commerce.
You can find the page under *System* > *Vipps*.

![Screenshot of Request Profiling Grid](images/request_profiling.png)
Expand All @@ -203,10 +202,12 @@ By using the built-in Adobe Commerce grid filter, you can find all requests per

## Tax Calculation for Express Checkout

When enabling the Express checkout payment in the configuration area, you may see a notification at the top of admin panel saying:
When enabling the Express checkout payment in the configuration area, you may see a notification at the top of the Adobe Commerce admin panel such as:

![Express Checkout notice](images/express-checkout-notice.png)

This means that you should change Tax Calculation Settings to be based on **Shipping Origin**:
This means that you should change *Tax Calculation Settings* to be based on *Shipping Origin*.

![Tax Calculation Settings](images/tax-origin-settings.png)

Otherwise, an issue with calculating delivery cost might occur.
Expand Down

0 comments on commit 1605fb8

Please sign in to comment.