Skip to content

Commit

Permalink
1.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Feb 18, 2017
1 parent 5d34a87 commit 79b1de5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
29 changes: 13 additions & 16 deletions Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class Charge extends \Df\StripeClone\Charge {
* @override
* @see \Df\StripeClone\Charge::cardIdPrefix()
* @used-by \Df\StripeClone\Charge::usePreviousCard()
* @return mixed
* @return string
*/
protected function cardIdPrefix() {return 'card';}

Expand Down Expand Up @@ -63,20 +63,6 @@ protected function pCharge() {return [
* https://stripe.com/docs/api/php#charge_object-shipping
*/
,'shipping' => $this->pShipping($forCharge = true)
/**
* 2016-03-07
* «An arbitrary string to be displayed on your customer's credit card statement.
* This may be up to 22 characters.
* As an example, if your website is RunClub
* and the item you're charging for is a race ticket,
* you may want to specify a statement_descriptor of RunClub 5K race ticket.
* The statement description may not include <>"' characters,
* and will appear on your customer's statement in capital letters.
* Non-ASCII characters are automatically stripped.
* While most banks display this information consistently,
* some may display it incorrectly or not at all.»
*/
,'statement_descriptor' => $this->ss()->statement()
];}

/**
Expand Down Expand Up @@ -183,10 +169,21 @@ protected function pCustomer() {return [
* @see \Df\StripeClone\Charge::keyCardId()
* @used-by \Df\StripeClone\Charge::request()
* @used-by \Df\StripeClone\Charge::newCard()
* @return mixed
* @return string
*/
protected function keyCardId() {return 'source';}

/**
* 2017-02-18
* https://stripe.com/blog/dynamic-descriptors
* https://support.stripe.com/questions/does-stripe-support-dynamic-descriptors
* @override
* @see \Df\StripeClone\Charge::keyDSD()
* @used-by \Df\StripeClone\Charge::request()
* @return string
*/
protected function keyDSD() {return 'statement_descriptor';}

/**
* 2016-09-07
* https://mage2.pro/t/2011/5
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.3"
,"version": "1.7.4"
,"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.10", "stripe/stripe-php": "3.*"}
,"require": {"mage2pro/core": "^2.0.12", "stripe/stripe-php": "3.*"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Stripe\\": ""}}
,"keywords": [
"API"
Expand Down
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
<depends><field id='enable'>1</field></depends>
</field>
<field
id='statement'
id='dsd'
translate='label'
type='text'
sortOrder='14'
Expand Down

0 comments on commit 79b1de5

Please sign in to comment.