Skip to content

Commit

Permalink
0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Apr 21, 2017
1 parent 719d4a5 commit cb87164
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
21 changes: 17 additions & 4 deletions Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,21 @@ function getAlias() {return __CLASS__;}
* @used-by \Magento\Framework\View\Element\AbstractBlock::toHtml()
* @return string
*/
final protected function _toHtml() {return df_tag('a',
['class' => 'dfe-klarna-button'] + df_widget($this, 'button', [])
,'Check out with Klarna'
) . df_link_inline(df_asset_name('button', $this, 'css'));}
final protected function _toHtml() {return df_cc_n(
/*df_tag('a',
['class' => 'dfe-klarna-button'] + df_widget($this, 'button', [])
,'Check out with Klarna'
) */
df_div([
'class' => 'klarna-widget klarna-part-payment'
,'data-eid' => dfps($this)->merchantID()
,'data-locale' => 'sv_se'
,'data-price' => '1201.34'
,'data-layout' => 'pale-v2'
,'data-invoice-fee' => '0.95'
,'style' => 'width:210px; height:80px'
])
,df_link_inline(df_asset_name('button', $this, 'css'))
,df_js_inline_r('https://cdn.klarna.com/1.0/code/client/all.js')
);}
}
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.3.3"
,"version": "0.3.4"
,"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.5.14", "mage2pro/klarna-sdk-v3": "^2.2.3"}
,"require": {"klarna/checkout": "*", "mage2pro/core": ">=2.5.15", "mage2pro/klarna-sdk-v3": "^2.2.3"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Klarna\\": ""}}
,"keywords": [
"API"
Expand Down

0 comments on commit cb87164

Please sign in to comment.