Skip to content

Commit

Permalink
1.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Apr 3, 2017
1 parent a8f6d68 commit d1690f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 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": "1.9.7"
,"version": "1.9.8"
,"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.4.20", "stripe/stripe-php": "3.*"}
,"require": {"mage2pro/core": ">=2.4.21", "stripe/stripe-php": "3.*"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Stripe\\": ""}}
,"keywords": [
"API"
Expand Down
15 changes: 6 additions & 9 deletions view/frontend/web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@ define([
getCardTypes: function() {return(
['VI', 'MC', 'AE'].concat(!this.config('isUS') ? [] : ['JCB', 'DI', 'DN'])
);},

/**
* 2016-03-02
* @override
* @see Df_Payment/card::initialize()
* https://github.com/mage2pro/core/blob/2.4.21/Payment/view/frontend/web/card.js#L77-L110
* @returns {Object}
*/
initialize: function() {
this._super();
Stripe.setPublishableKey(this.publicKey());
return this;
},

/**
* 2017-02-16
* @override
Expand All @@ -48,8 +49,7 @@ define([
* @param {Object|Number} status
* @returns {Boolean}
*/
tokenCheckStatus: function(status) {return 200 === status;},

tokenCheckStatus: function(status) {return 200 === status;},
/**
* 2017-02-16
* @override
Expand All @@ -60,7 +60,6 @@ define([
* @returns {Function}
*/
tokenCreate: function(params, callback) {return Stripe.card.createToken(params, callback);},

/**
* 2017-02-16
* https://stripe.com/docs/api#errors
Expand All @@ -71,8 +70,7 @@ define([
* @param {Object} resp
* @returns {String}
*/
tokenErrorMessage: function(status, resp) {return resp.error.message;},

tokenErrorMessage: function(status, resp) {return resp.error.message;},
/**
* 2017-02-16
* @override
Expand All @@ -81,8 +79,7 @@ define([
* @param {Object} resp
* @returns {String}
*/
tokenFromResponse: function(resp) {return resp.id;},

tokenFromResponse: function(resp) {return resp.id;},
/**
* 2017-02-16
* @override
Expand Down

0 comments on commit d1690f1

Please sign in to comment.