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 Apr 4, 2017
1 parent b26c0df commit 0631fc1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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/klarna"
,"version": "0.2.4"
,"version": "0.2.5"
,"description": "The «Klarna» payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/klarna"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"klarna/checkout": "*", "mage2pro/core": ">=2.4.23", "mage2pro/klarna-sdk-v3": "^2.2.3"}
,"require": {"klarna/checkout": "*", "mage2pro/core": ">=2.4.27", "mage2pro/klarna-sdk-v3": "^2.2.3"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Klarna\\": ""}}
,"keywords": [
"API"
Expand Down
4 changes: 2 additions & 2 deletions etc/webapi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation='urn:magento:module:Magento_Webapi:etc/webapi.xsd'
>
<route url='/V1/dfe-klarna/:cartId/html' method='GET'>
<route url='/V1/dfe-klarna/:cartId/html' method='POST'>
<service class='Dfe\Klarna\Html' method='guest'/>
<resources><resource ref='anonymous'/></resources>
</route>
<route url='/V1/dfe-klarna/mine/html' method='GET'>
<route url='/V1/dfe-klarna/mine/html' method='POST'>
<service class='Dfe\Klarna\Html' method='registered'/>
<resources><resource ref='self'/></resources>
<data><parameter name='cartId' force='true'>%cart_id%</parameter></data>
Expand Down
6 changes: 3 additions & 3 deletions view/frontend/web/main.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// 2016-12-17
define([
'df', 'Df_Checkout/post', 'Df_Payment/billingAddressChange', 'Df_Payment/custom', 'ko'
'df', 'Df_Checkout/api', 'Df_Payment/billingAddressChange', 'Df_Payment/custom', 'ko'
,'Magento_Checkout/js/model/quote'
,'Magento_Customer/js/model/customer'
,'Magento_Checkout/js/model/url-builder'
], function(
df, post, billingAddressChange, parent,ko
df, api, billingAddressChange, parent,ko
,q, customer, ub
) {'use strict'; return parent.extend({
defaults: {
Expand Down Expand Up @@ -37,7 +37,7 @@ define([
_this.klHtml(newAddress.countryId);
/** @type {Boolean} */
var l = customer.isLoggedIn();
post(_this,
api(_this,
ub.createUrl(
df.s.t('/dfe-klarna/%s/html', l?'mine':':quoteId'), l?{}:{quoteId: q.getQuoteId()}
)
Expand Down

0 comments on commit 0631fc1

Please sign in to comment.