Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@
**Required WooCommerce version:** 3.5<br>
**Required PHP version:** 7.3

Accept all popular payment methods for Finnish B2C and B2B customers with one agreement and one plugin.
Accept all popular payment methods for Finnish B2C and B2B customers with one agreement and one plugin.

[Paytrail](https://www.paytrail.com) provides you with:

* **A trusted and popular Finnish payment service with 17 years of e-commerce experience** that is supported all over Finland and many European countries. 20 000+ online businesses and services including the Finnish State Treasury ‘s Suomi.fi payment service entrust us to handle their transactions.
* **Popular payment methods in Finland to increase conversion rates:** online banks, cards, mobile, Buy now, Pay later and PayPal. Detailed payment method information can be found on [our website](https://www.paytrail.com/en/payment-methods).
* **Tokenization and Subscriptions.** The plugin supports card tokenization which allows customers to store their credit card information securely and reliably for later use or with the use of [WooCommerce Subscriptions](https://woocommerce.com/products/woocommerce-subscriptions/) for recurring payments.
* **Fast, reliable payouts** that are made at the same time regardless of payment method used.
* **Fast, reliable payouts** that are made at the same time regardless of payment method used.
* **Accessible, friendly, and fast customer service.** Our customer service team replies to all requests from our customers and our customers’ customers.
* **Reliable and compliant service** with an [uptime of 99.98%](https://status.paytrail.com/). Local and EU regulatory requirements and updates are always made on time.
* **Easy monitoring and detailed reporting.** Track and analyze transactions, create refunds and payment links, and download detailed reports for accounting purposes.

To use this plugin, first [register for a Paytrail account](https://www.paytrail.com/en/order-service).
To use this plugin, first [register for a Paytrail account](https://www.paytrail.com/en/order-service).

For pricing, please [visit our website](https://www.paytrail.com/en/pricing).

## Installation

### From WordPress plugin directory

Open WordPress Admin panel and go to Plugins -> Add New. Search for [Paytrail for WooCommerce](https://wordpress.org/plugins/paytrail-for-woocommerce/), click install and then activate.
Open WordPress Admin panel and go to Plugins -> Add New. Search for [Paytrail for WooCommerce](https://wordpress.org/plugins/paytrail-for-woocommerce/), click install and then activate.

After installation go to WooCommerce -> Settings -> Payments and select "Manage" next to Paytrail for WooCommerce to review settings.

Expand All @@ -34,8 +34,8 @@ After installation go to WooCommerce -> Settings -> Payments and select "Manage"
1. If you have Composer installed:
- You can use the command line to install the plugin:

```
$ composer require paytrail/paytrail-for-woocommerce
```shell
composer require paytrail/paytrail-for-woocommerce
```
- Or you can add the following json to your `composer.json` file:

Expand Down Expand Up @@ -93,7 +93,7 @@ Setup fallback country to be used if no country is provided from Woocommerce che

### Token migration ###

Choose this to update card information (tokens) from the old Checkout Finland for WooCommerce -plugin. The update is done upon saving settings.
Choose this to update card information (tokens) from the old Checkout Finland for WooCommerce plugin. The update is done upon saving settings.

## Router

Expand Down
101 changes: 50 additions & 51 deletions assets/scss/introStyles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,79 +33,78 @@ input[type="text"] {
cursor: pointer;
}
.overlay-hidden {
display: none !important;
display: none !important;
}
#paytrail-overlay-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
}
.paytrail-intro-container {
max-width:770px;
border: 1px solid #D92D83;
margin:0 auto;
display:flex;
flex-direction:row;
flex-wrap:wrap;
margin-top:100px;
max-width:770px;
border: 1px solid #D92D83;
margin:0 auto;
display:flex;
flex-direction:row;
flex-wrap:wrap;
margin-top:100px;
}
.paytrail-intro-header{
background-color:#D92D83;
width:100%;
flex-shrink:0;
background-color:#D92D83;
width:100%;
flex-shrink:0;
}
.paytrail-intro-logo-container{
width:17%;
display:inline-block;
width:17%;
display:inline-block;
}
.paytrail-intro-title-container{
width:82%;
display:inline-block;
width:82%;
display:inline-block;
}
.paytrail-intro-title-container h2 {
color:#fff;
font-size:36px;
margin-bottom:5px;
color:#fff;
font-size:36px;
margin-bottom:5px;
}
.paytrail-intro-title-container p {
color:#fff;
font-size:16px;
color:#fff;
font-size:16px;
}
.modern-button {
background-color: #D92D83;
color: #fff;
border: none;
padding: 10px 25px;
cursor: pointer;
border-radius: 10px;
font-size: 16px;
transition: 0.3s;
margin-right: 8px;
text-transform: uppercase;
font-weight: bold;
background-color: #D92D83;
color: #fff;
border: none;
padding: 10px 25px;
cursor: pointer;
border-radius: 10px;
font-size: 16px;
transition: 0.3s;
margin-right: 8px;
text-transform: uppercase;
font-weight: bold;
}
.modern-button.gray{
background: #fff;
border:1px solid #555;
color: #555;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 3px 10px 0 rgba(0,0,0,0.19);

background: #fff;
border:1px solid #555;
color: #555;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 3px 10px 0 rgba(0,0,0,0.19);
}
.modern-button:hover {
background-color: #fff;
color:#D92D83;
background-color: #fff;
color:#D92D83;
}
.ui-dialog-titlebar {
background: none;
border:none
background: none;
border:none
}
.ui-widget-content {
border: none;
border: none;
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"scripts": {
"lint": [
"vendor/bin/phpcs --standard=pbs-rules-set.xml --warning-severity=0 --ignore-annotations --extensions=php,html src"
"vendor/bin/phpcs --standard=pbs-rules-set.xml --warning-severity=0 --ignore-annotations --extensions=php plugin.php src/"
]
}
}
8 changes: 3 additions & 5 deletions pbs-rules-set.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<exclude-pattern>*/vendor/*</exclude-pattern>

<!-- Configs -->
<config name="minimum_supported_wp_version" value="4.7" />
<config name="testVersion" value="5.6-" />
<config name="minimum_supported_wp_version" value="4.9" />
<config name="testVersion" value="7.3-" />

<!-- Rules -->
<rule ref="WordPress-Extra">
Expand All @@ -37,7 +37,5 @@
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
</rule>

<rule ref="PHPCompatibility">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="PHPCompatibility" />
</ruleset>
Loading