MollieApplePayRestrictor (optional)
GitHub - magesuite/mollie-apple-pay-restrictor
Mollie Apple Pay can be tested only in production mode, to allow testing functionality before the method will be visible for customers please the module allows to show/hide its visibility based on the get parameter in the URL. The payment method is restricted on PDP and in checkout.
Â
Installation
This module is optional.
composer require "creativestyle/magesuite-mollie-apple-pay-restrictor" ^1.0.0
Admin settings
Module configuration is located under Stores -> Configuration -> MageSuite -> Apple Pay Restrictions
path.
Mollie Apple Pay Restrictor - module configuration
Â
Configuration Fields:
Field Name | Field Description |
---|---|
Full Visibility Enabled | If ‘Yes’ is selected then the Apple Pay payment method will be visible without any restrictions. If ‘No’ is selected then the Apple Pay method will be visible only with particular parameter in URL. By default that field is set to ‘No’. |
URL Parameter Key | The name of URL parameter which needs to be passed in URL in order to make the Apple Pay method visible. If that value is not defined then the Apple Pay payment method is hidden. The default value for that field is ‘ap_button_show’. |
Â
How does that module work?
In order to see the Apple Pay payment method, an additional parameter needs to be passed in the URL.
The value of that parameter is not defined. The only requirement is that it cannot be empty.
Backend
BE documentation is in progress
Frontend
Mollie Apple Pay Method is removed from method-renderer (Magento_Checkout/js/model/payment/renderer-list) list when the body has class mollie_methods_applepay_hidden
.
Â