Skip to content

Commit

Permalink
Added descriptive message to admin payment link method
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin-Magmodules committed Nov 30, 2018
1 parent 696bd94 commit 0f819e1
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
22 changes: 22 additions & 0 deletions Block/Form/Paymentlink.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
/**
* Copyright © 2018 Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Mollie\Payment\Block\Form;

/**
* Class Paymentlink
*
* @package Mollie\Payment\Block\Form
*/
class Paymentlink extends \Magento\Payment\Block\Form
{

/**
* @var string
*/
protected $_template = 'Mollie_Payment::form/mollie_paymentlink.phtml';

}
1 change: 1 addition & 0 deletions Block/Info/Paymentlink.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ class Paymentlink extends Base
* @var string
*/
protected $_template = 'Mollie_Payment::info/mollie_paymentlink.phtml';

}
8 changes: 7 additions & 1 deletion Model/Methods/Paymentlink.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ class Paymentlink extends Mollie
*
* @var string
*/
protected $_infoBlockType = 'Mollie\Payment\Block\Info\Paymentlink';
protected $_infoBlockType = \Mollie\Payment\Block\Info\Paymentlink::class;
/**
* Info instructions form path
*
* @var string
*/
protected $_formBlockType = \Mollie\Payment\Block\Form\Paymentlink::class;

/**
* @param string $paymentAction
Expand Down
20 changes: 20 additions & 0 deletions view/adminhtml/templates/form/mollie_paymentlink.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
/**
* Copyright © 2018 Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile
/**
* @var \Mollie\Payment\Block\Form\Paymentlink $block
* @see \Mollie\Payment\Block\Form\Paymentlink
// @codingStandardsIgnoreFile
/**
* @var \Magento\Payment\Block\Adminhtml\Transparent\Form $block
*/
$code = $block->escapeHtml($block->getMethodCode());
?>
<fieldset class="admin__fieldset payment-method" id="payment_form_<?php /* @noEscape */ echo $code; ?>" style="display:none">
<?= $block->escapeHtml(__('Create a Mollie Payment link and add this to the order email.')); ?>
</fieldset>

0 comments on commit 0f819e1

Please sign in to comment.