Skip to content

Commit

Permalink
2.4.7: #50
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Nov 15, 2017
1 parent 862a544 commit 60c71c5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 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/stripe"
,"version": "2.4.6"
,"version": "2.4.7"
,"description": "Stripe integration with Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/stripe"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=3.3.10", "mage2pro/phone": ">=1.0.11", "stripe/stripe-php": ">=5.3"}
,"require": {"mage2pro/core": ">=3.3.14", "mage2pro/phone": ">=1.0.11", "stripe/stripe-php": ">=5.3"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Stripe\\": ""}}
,"keywords": [
"3D Secure"
Expand Down
23 changes: 16 additions & 7 deletions view/frontend/web/template/card/fields.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,23 @@
</div>
<!--/ko-->
<!--ko if: singleLineMode() -->
<div afterRender='dfOnRender' class='df-stripe-input' data-type='card'></div>
<!-- 2017-11-15
`afterRender='<callback>'` does not work at least in Magento 2.0.2: https://github.com/mage2pro/stripe/issues/50
-->
<div class='df-stripe-input' data-bind='afterRender: dfOnRender' data-type='card'></div>
<!--/ko-->
<!--ko if: !singleLineMode() -->
<div class='field number required'>
<label data-bind="attr: {for: dfCardNumberId()}" class="label">
<span><!-- ko df_i18n: 'Credit Card Number'--><!-- /ko --></span>
</label>
<div class='control'>
<!-- 2017-11-15
`afterRender='<callback>'` does not work at least in Magento 2.0.2: https://github.com/mage2pro/stripe/issues/50
-->
<div
afterRender='dfOnRender'
class='df-stripe-input'
data-bind="attr: {id: dfCardNumberId()}"
data-bind='afterRender: dfOnRender, attr: {id: dfCardNumberId()}'
data-type='cardNumber'
></div>
</div>
Expand All @@ -81,10 +86,12 @@
<span><!-- ko df_i18n: 'Expiration Date'--><!-- /ko --></span>
</label>
<div class='control'>
<!-- 2017-11-15
`afterRender='<callback>'` does not work at least in Magento 2.0.2: https://github.com/mage2pro/stripe/issues/50
-->
<div
afterRender='dfOnRender'
class='df-stripe-input'
data-bind="attr: {id: dfCardExpirationCompositeId()}"
data-bind='afterRender: dfOnRender, attr: {id: dfCardExpirationCompositeId()}'
data-type='cardExpiry'
></div>
</div>
Expand All @@ -94,10 +101,12 @@
<span><!-- ko df_i18n: 'Card Verification Number'--><!-- /ko --></span>
</label>
<div class='control _with-tooltip'>
<!-- 2017-11-15
`afterRender='<callback>'` does not work at least in Magento 2.0.2: https://github.com/mage2pro/stripe/issues/50
-->
<div
afterRender='dfOnRender'
class='df-stripe-input'
data-bind="attr: {id: dfCardVerificationId()}"
data-bind='afterRender: dfOnRender, attr: {id: dfCardVerificationId()}'
data-type='cardCvc'
></div>
<div class='field-tooltip toggle'>
Expand Down

0 comments on commit 60c71c5

Please sign in to comment.