Skip to content

Commit

Permalink
0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 9, 2017
1 parent 3e310a3 commit 1bf5717
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/qiwi"
,"version": "0.2.4"
,"version": "0.2.5"
,"description": "The «Visa QIWI Wallet» (QIWI Кошелёк) payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/qiwi"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=2.11.30", "mage2pro/phone": ">=1.0.10"}
,"require": {"mage2pro/core": ">=2.11.30", "mage2pro/phone": ">=1.0.11"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Qiwi\\": ""}}
,"keywords": [
"API"
Expand Down
7 changes: 6 additions & 1 deletion view/frontend/web/template/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</label>
<div class='control'>
<!-- 2017-09-09
Note 1.
We need this whapper, because otherwise the validation message will break the country flag position
(the country flag will be shifted down).
It is because the `jackocnr/intl-tel-input` JS library creates some wrappers around the phone <input>,
Expand All @@ -27,6 +28,8 @@
errorPlacement = fieldWrapper.after(error);
}
https://github.com/magento/magento2/blob/2.2.0-rc2.3/lib/web/mage/validation.js#L1756-L1761
Note 2. `How to get the list of allowed QIWI Wallet customer countries manually`: https://mage2.pro/t/4477
-->
<div class='addon df-phone-addon'>
<input
Expand All @@ -38,7 +41,9 @@
,id: fid('phone')
,title: $t('Phone Number')
}
,'df-phone': {options: {}, storage: phone, value: phone()}
,'df-phone': {options: {
onlyCountries: ['AM','AR','AZ','BY','EE','GB','GE','IL','IN','JO','JP','KG','KR','KZ','LT','LV','MD','PA','RO','RU','TH','TJ','TR','UA','US','UZ','VN']
}, storage: phone, value: phone()}
,value: phone
,valueUpdate: 'keyup'
"
Expand Down

0 comments on commit 1bf5717

Please sign in to comment.