-
Notifications
You must be signed in to change notification settings - Fork 17
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
Reinder
committed
Mar 23, 2020
1 parent
1953819
commit b4ab804
Showing
412 changed files
with
5,575 additions
and
26,834 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,10 @@ | ||
parameters: | ||
level: 1 | ||
paths: | ||
- %currentWorkingDirectory%/src | ||
- %currentWorkingDirectory%/tests | ||
- %currentWorkingDirectory%/examples | ||
excludes_analyse: | ||
- %currentWorkingDirectory%/vendor | ||
includes: | ||
- .phpstan.ignoreErrors.neon |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
(function ($) { | ||
"use strict"; | ||
|
||
$(document).ready(function() { | ||
manageApplePay(); | ||
}); | ||
|
||
$(document).ajaxComplete(function() { | ||
manageApplePay(); | ||
}); | ||
|
||
function manageApplePay() { | ||
// Find the hidden Apple Pay element | ||
var applePayInput = document.getElementsByClassName('payment-mean-mollie-applepay'); | ||
var applePayLabel = document.getElementsByClassName('payment-mean-mollie-applepay-label'); | ||
|
||
if (!window.ApplePaySession || !ApplePaySession.canMakePayments()) { | ||
// Apple Pay is not available | ||
if (typeof applePayInput !== 'undefined' && applePayInput.length) { | ||
applePayInput[0].parentNode.parentNode.classList.add('is--hidden'); | ||
} | ||
} else { | ||
// Show Apple Pay option | ||
if (typeof applePayInput !== 'undefined' && applePayInput.length) { | ||
applePayInput[0].attributes.removeNamedItem('disabled'); | ||
} | ||
|
||
if (typeof applePayLabel !== 'undefined' && applePayLabel.length) { | ||
applePayLabel[0].classList.remove('is--soft'); | ||
applePayLabel[0].classList.remove('is--hidden'); | ||
} | ||
} | ||
} | ||
}(jQuery)); |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.