forked from mollie/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11b239f
commit 329a2d3
Showing
10 changed files
with
154 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* Copyright © 2018 Magmodules.eu. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Mollie\Payment\Model\Methods; | ||
|
||
class ApplePay extends \Mollie\Payment\Model\Mollie | ||
{ | ||
|
||
/** | ||
* Payment method code | ||
* | ||
* @var string | ||
*/ | ||
protected $_code = 'mollie_methods_applepay'; | ||
|
||
/** | ||
* Info instructions block path | ||
* | ||
* @var string | ||
*/ | ||
protected $_infoBlockType = 'Mollie\Payment\Block\Info\Base'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd"> | ||
<group id="mollie_methods_applepay" translate="label" type="text" sortOrder="22" showInDefault="1" | ||
showInWebsite="1" showInStore="1"> | ||
<label>Apple Pay</label> | ||
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" | ||
showInStore="1"> | ||
<label>Enabled</label> | ||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model> | ||
<config_path>payment/mollie_methods_applepay/active</config_path> | ||
<comment><![CDATA[<strong>Please note: This payment method is only visible when the users device has Apple Pay enabled.</strong>]]></comment> | ||
</field> | ||
<field id="title" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" | ||
showInStore="1"> | ||
<label>Title</label> | ||
<config_path>payment/mollie_methods_applepay/title</config_path> | ||
<depends> | ||
<field id="active">1</field> | ||
</depends> | ||
</field> | ||
<field id="method" translate="label" type="select" sortOrder="3" showInDefault="1" showInWebsite="1" | ||
showInStore="1"> | ||
<label>Method</label> | ||
<source_model>Mollie\Payment\Model\Adminhtml\Source\Method</source_model> | ||
<config_path>payment/mollie_methods_applepay/method</config_path> | ||
<depends> | ||
<field id="active">1</field> | ||
</depends> | ||
<comment><![CDATA[<strong>Payment API</strong><br>Use the Payment API Platform for the transactions.<br><br> | ||
<strong>Order API</strong><br>Use the new Order API Platform and get additional insights in the orders. | ||
Read <a href="https://docs.mollie.com/orders/why-use-orders" target="_blank" >more.</a>]]></comment> | ||
</field> | ||
<field id="payment_description" translate="label" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1"> | ||
<label>Description</label> | ||
<config_path>payment/mollie_methods_applepay/payment_description</config_path> | ||
<comment><![CDATA[The description to be used for this transaction. These variables are available:<br><br> | ||
<strong>{ordernumber}</strong>: The order number for this transaction<br> | ||
<strong>{storename}</strong>: The name of the store<br><br> | ||
(Note: This only works when the method is set to Payments API) | ||
]]></comment> | ||
<depends> | ||
<field id="method">payment</field> | ||
<field id="active">1</field> | ||
</depends> | ||
</field> | ||
<field id="allowspecific" translate="label" type="allowspecific" sortOrder="96" showInDefault="1" | ||
showInWebsite="1" showInStore="1"> | ||
<label>Payment from Applicable Countries</label> | ||
<source_model>Magento\Payment\Model\Config\Source\Allspecificcountries</source_model> | ||
<config_path>payment/mollie_methods_applepay/allowspecific</config_path> | ||
<depends> | ||
<field id="active">1</field> | ||
</depends> | ||
</field> | ||
<field id="specificcountry" translate="label" type="multiselect" sortOrder="97" showInDefault="1" | ||
showInWebsite="1" showInStore="1"> | ||
<label>Payment from Specific Countries</label> | ||
<source_model>Magento\Directory\Model\Config\Source\Country</source_model> | ||
<can_be_empty>1</can_be_empty> | ||
<config_path>payment/mollie_methods_applepay/specificcountry</config_path> | ||
<depends> | ||
<field id="active">1</field> | ||
</depends> | ||
</field> | ||
<field id="min_order_total" translate="label" type="text" sortOrder="98" showInDefault="1" showInWebsite="1" | ||
showInStore="1"> | ||
<label>Minimum Order Total</label> | ||
<config_path>payment/mollie_methods_applepay/min_order_total</config_path> | ||
<depends> | ||
<field id="active">1</field> | ||
</depends> | ||
</field> | ||
<field id="max_order_total" translate="label" type="text" sortOrder="99" showInDefault="1" showInWebsite="1" | ||
showInStore="1"> | ||
<label>Maximum Order Total</label> | ||
<config_path>payment/mollie_methods_applepay/max_order_total</config_path> | ||
<depends> | ||
<field id="active">1</field> | ||
</depends> | ||
</field> | ||
<field id="sort_order" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" | ||
showInStore="1"> | ||
<label>Sort Order</label> | ||
<frontend_class>validate-number</frontend_class> | ||
<config_path>payment/mollie_methods_applepay/sort_order</config_path> | ||
<depends> | ||
<field id="active">1</field> | ||
</depends> | ||
</field> | ||
</group> | ||
</include> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters