Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add woocommerce PSD2 doc #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
4 changes: 2 additions & 2 deletions hipay-enterprise-sdk-magento_1/05-Module-Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ You can install this module in a classic way, then directly modify the file “O

Be careful ! If there is an update of the data module, remember to save your data so that it is not overwritten.

Finally, although we do our best to retieve all relevant data for you, we are not capable of getting the following data as it depends on the modules installed on your CMS or your workflow.
Finally, although we do our best to retrieve all relevant data for you, we are not capable of getting the following data as it depends on the modules installed on your CMS or your workflow.

### Customer

Expand All @@ -283,4 +283,4 @@ Finally, although we do our best to retieve all relevant data for you, we are no
| | **count** | Collect the count of gift card type gift cards purchased. |
| | **currency** | Collect the currency of gift card type gift cards purchased. |

If you want to see all the parameters you are able to override, please refer to the [SDK PHP Reference](https://developer.hipay.com/doc/hipay-enterprise-sdk-php/#psd2-and-strong-customer-authentication).
If you want to see all the parameters you are able to override, please refer to the [SDK PHP Reference](https://developer.hipay.com/doc/hipay-enterprise-sdk-php/#psd2-and-strong-customer-authentication).
4 changes: 2 additions & 2 deletions hipay-enterprise-sdk-magento_2/06-Module-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ You can install this module in a classic way, then directly modify the file “T

Be careful ! If there is an update of the data module, remember to save your data so that it is not overwritten.

Finally, although we do our best to retieve all relevant data for you, we are not capable of getting the following data as it depends on the modules installed on your CMS or your workflow.
Finally, although we do our best to retrieve all relevant data for you, we are not capable of getting the following data as it depends on the modules installed on your CMS or your workflow.

### Merchant risk statement

Expand All @@ -173,4 +173,4 @@ Finally, although we do our best to retieve all relevant data for you, we are no
| | **count** | Collect the count of gift card type gift cards purchased. |
| | **currency** | Collect the currency of gift card type gift cards purchased. |

If you want to see all the parameters you are able to override, please refer to the [SDK PHP Reference](https://developer.hipay.com/doc/hipay-enterprise-sdk-php/#psd2-and-strong-customer-authentication).
If you want to see all the parameters you are able to override, please refer to the [SDK PHP Reference](https://developer.hipay.com/doc/hipay-enterprise-sdk-php/#psd2-and-strong-customer-authentication).
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ You can install this module in a classic way, then directly modify the file “h

Be careful ! If there is an update of the data module, remember to save your data so that it is not overwritten.

Finally, although we do our best to retieve all relevant data for you, we are not capable of getting the following data as it depends on the modules installed on your CMS or your workflow.
Finally, although we do our best to retrieve all relevant data for you, we are not capable of getting the following data as it depends on the modules installed on your CMS or your workflow.

### Merchant risk statement

Expand All @@ -148,4 +148,4 @@ Finally, although we do our best to retieve all relevant data for you, we are no
| | **count** | Collect the count of gift card type gift cards purchased. |
| | **currency** | Collect the currency of gift card type gift cards purchased. |

If you want to see all the parameters you are able to override, please refer to the [SDK PHP Reference](https://developer.hipay.com/doc/hipay-enterprise-sdk-php/#psd2-and-strong-customer-authentication).
If you want to see all the parameters you are able to override, please refer to the [SDK PHP Reference](https://developer.hipay.com/doc/hipay-enterprise-sdk-php/#psd2-and-strong-customer-authentication).
40 changes: 40 additions & 0 deletions hipay-enterprise-sdk-woocommerce/07-Module-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,43 @@ This interface is similar to the Production configuration.

**These identifiers are used if your plugin is configured in Test mode.**

# PSD2 and Strong Customer Authentication

Given the strong growth of the e-commerce in Europe, the Payment Services Directive (PSD2) redefines the security standards for online payments aiming to increase the security during the payment process, while fighting more actively against fraud attempts. For more details on the regulations, we invite you to read the [documentation provided by Hipay](https://developer.hipay.com/psd2-and-strong-customer-authentication-3-d-secure-2-compliance-and-guidance/).

As of September 14, 2019, the issuer will decide if a payment is processed depending on the analysis of more than 150 data collected during the purchasing process. Thanks to our Woocommerce module we handle most of the data without you having to develop anything. You can see all the new parameters on [our explorer API](https://developer.hipay.com/doc-api/enterprise/gateway/).

## Adding or overriding PSD2 data

The accuracy of the information sent is key for making sure that your customers have a frictionless payment process. That’s why we provide you the possibility to add or override all the information related to the DSP2.

We provide you the “hipay_wc_before_request” filter that can be hooked by calling [add_filter()](https://developer.wordpress.org/reference/functions/add_filter/).

It is called with two parameters: the request sent to the HiPay API and the current customer order.

You can either implement the filter handler in your own modules/theme or use the module that we provide. You can find this additional module on our [github repository](https://github.com/hipay/hipay-enterprise-sdk-woocommerce-data).

You can install this module in a classic way, then directly modify the file “class-wc-hipayenterprise-data.php” and the method “beforeMapRequest” to add your information.

Be careful ! If there is an update of the data module, remember to save your data so that it is not overwritten.

Finally, although we do our best to retrieve all relevant data for you, we are not capable of getting the following data as it depends on the modules installed on your CMS or your workflow.

### Customer

| Field | Comment |
| --- | --- |
| **password_change** | By default, magento does not save the password change dates for a user.<br/>However, you can implement this feature and add this information in the observer. |

### Merchant risk statement

| Field | | Comment |
| --- | --- | --- |
| **delivery_time_frame** | | The field is managed but only for virtual products. <br/>We send “1 = Electronic delivery” if it is downloadable or virtual product.<br/><br/>Depending on your carrier and delivery methods, you can refine this data. <br/><br/>Possible values: <br/><br/>1 = Electronic delivery<br/>2 = Same day shipping<br/>3 = Overnight shipping<br/>4 = Two-day or more shipping |
| **shipping_indicator** | | This fields is managed but you can refine the value for dematerialized products.<br/><br/>If the basket contains only virtual products, please provide:<br/><br/>5 = Digital goods<br/>6 = Travel and event tickets, no shipping<br/>7 = Other (gaming, digital services without shipping, e-media subscription) |
| **gift_card** | | **If you sell gift card products** |
| | **amount** | Collect the amount of gift card type gift cards purchased. |
| | **count** | Collect the count of gift card type gift cards purchased. |
| | **currency** | Collect the currency of gift card type gift cards purchased. |

If you want to see all the parameters you are able to override, please refer to the [SDK PHP Reference](https://developer.hipay.com/doc/hipay-enterprise-sdk-php/#psd2-and-strong-customer-authentication).