Skip to content

Commit

Permalink
1.7.2: #2
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Feb 15, 2017
1 parent 536f0a9 commit 1838cfd
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Facade/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ function last4() {return $this->_p['last4'];}

/**
* 2017-02-11
* 2017-02-16: https://github.com/mage2pro/stripe/issues/2
* @override
* @see \Df\StripeClone\Facade\ICard::owner()
* @used-by \Df\StripeClone\CardFormatter::ii()
* @return string
*/
function owner() {return '';}
function owner() {return $this->_p['name'];}

/**
* 2017-02-11
Expand Down
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": "1.7.1"
,"version": "1.7.2"
,"description": "The «Stripe» payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/stripe"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": "^2.0.5", "stripe/stripe-php": "3.*"}
,"require": {"mage2pro/core": "^2.0.7", "stripe/stripe-php": "3.*"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Stripe\\": ""}}
,"keywords": [
"API"
Expand Down
26 changes: 21 additions & 5 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,29 @@
<depends><field id='enable'>1</field></depends>
</field>
<field
id='askForBillingAddress'
id='requireCardholder'
translate='label'
type='Df\Framework\Form\Element\Checkbox'
sortOrder='16'
showInDefault='1'
showInWebsite='1'
showInStore='1'
>
<label>Require the cardholder's name?</label>
<backend_model>Df\Config\Backend\Checkbox</backend_model>
<comment><![CDATA[Stripe does not require it, but you can require it from your customers.]]></comment>
<depends>
<field id='enable'>1</field>
</depends>
</field>
<field
id='askForBillingAddress'
translate='label'
type='Df\Framework\Form\Element\Checkbox'
sortOrder='17'
showInDefault='1'
showInWebsite='1'
showInStore='1'
>
<label>Ask for the Billing Address?</label>
<backend_model>Df\Config\Backend\Checkbox</backend_model>
Expand All @@ -264,7 +280,7 @@
id='min_order_total'
translate='label'
type='text'
sortOrder='17'
sortOrder='18'
showInDefault='1'
showInWebsite='1'
showInStore='1'
Expand All @@ -278,7 +294,7 @@
id='max_order_total'
translate='label'
type='text'
sortOrder='18'
sortOrder='19'
showInDefault='1'
showInWebsite='1'
showInStore='1'
Expand All @@ -292,7 +308,7 @@
id='country_restriction'
translate='label'
type='select'
sortOrder='19'
sortOrder='20'
showInDefault='1'
showInWebsite='1'
showInStore='1'
Expand All @@ -305,7 +321,7 @@
id='countries'
translate='label'
type='Df\Framework\Form\Element\Multiselect'
sortOrder='20'
sortOrder='21'
showInDefault='1'
showInWebsite='1'
showInStore='1'
Expand Down
3 changes: 3 additions & 0 deletions view/frontend/web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ define([
cvc: this.creditCardVerificationNumber()
,exp_month: this.creditCardExpMonth()
,exp_year: this.creditCardExpYear()
// 2017-02-16
// https://stripe.com/docs/stripe.js#card-createToken
,name: this.cardholder()
,number: this.creditCardNumber()
},
/**
Expand Down

0 comments on commit 1838cfd

Please sign in to comment.