Commit d7fc7c95 authored by Daniel Kazior's avatar Daniel Kazior 💰
Browse files

Merge branch 'develop' into 'master'

Version 1.0.0 release

See merge request !7
parents ef1eb5f5 1e0e01ee
......@@ -6,8 +6,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Known issues]
## [Unreleased]
## [1.0.0] - 2019-10-04
### Fixed
- EXPIRED notifications now increase stock of products when they are cancelling an order
- Reorder link now works on Magento 2.3.2 again
- Suspected Fraud status is now circumvented when the module captures automatically after a MERCHANTPENDING notification is received
- Notifications now work without form key in Magento 2.3.2
- The shipping costs are now transferred to CrefoPay correctly as an individual basket item
- The gender options on the payment selection are now translatable
- If a transaction could not be created we no longer display our payment methods
- We fixed cases, in which the module was even though it was disabled
- A 0 is added to all phone numbers that don't start with it to avoid rejection by the CrefoPay API
- IBANs with non-numeric characters after the first 4 are now able to be input
## [0.9.4] - 2019-06-04
### Added
......
## Dependencies
PHP 7.0 and higher
PHP 7.1 and higher
Magento 2.2.x and 2.3.1+ (not 2.3.0)
This module depends on the CrefoPay PHP Library.
......
......@@ -87,7 +87,8 @@ class PersonBuilder
*/
private function getPhone(Address $address): string
{
return '0' . preg_replace('/\D/', '', $address->getTelephone());
$number = preg_replace('/\D/', '', $address->getTelephone());
return substr($number, 0, 1) === '0' ? $number : '0' . $number;
}
/**
......
......@@ -609,10 +609,10 @@ define([
this.appendChild(iFrameElement);
});
($.mask || $.getScript('https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.js', function () {
$("*[data-crefopay='paymentInstrument.iban']").mask('aa99 9999 9999 9999 9999 9999 9999 9999 99',{autoclear: false,placeholder:" "})
$("*[data-crefopay='paymentInstrument.iban']").mask('aa99 **** **** **** **** **** **** **** **',{autoclear: false,placeholder:" "})
}));
if ($.mask){
$("*[data-crefopay='paymentInstrument.iban']").mask('aa99 9999 9999 9999 9999 9999 9999 9999 99',{autoclear: false,placeholder:" "})
$("*[data-crefopay='paymentInstrument.iban']").mask('aa99 **** **** **** **** **** **** **** **',{autoclear: false,placeholder:" "})
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment