Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Adyen Magento2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared Libs
Adyen Magento2
Commits
514f7bda
Commit
514f7bda
authored
Feb 26, 2018
by
Maikel Koek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automatically copies payment link to clipboard
When not supported by browser, the link can still be copied manually
parent
ea9146e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
view/adminhtml/templates/info/adyen_paymentlink.phtml
view/adminhtml/templates/info/adyen_paymentlink.phtml
+14
-2
No files found.
view/adminhtml/templates/info/adyen_paymentlink.phtml
View file @
514f7bda
...
...
@@ -27,6 +27,18 @@
<div
class=
"admin__page-section-item-title"
>
<span
class=
"title"
>
<?php
echo
__
(
'Adyen Payment Link'
);
?>
</span>
</div>
<a
href=
"
<?=
$block
->
getPaymentLinkUrl
();
?>
"
target=
"_blank"
>
<?php
echo
__
(
'Adyen Payment Link for remaining total due'
);
?>
<p
id=
"paymentlink"
></p>
<a
href=
"
<?=
$block
->
getPaymentLinkUrl
();
?>
"
onclick=
"copyToClipboard(event, '
<?=
$block
->
getPaymentLinkUrl
();
?>
')"
style=
"cursor:pointer;"
>
<?php
echo
__
(
'Copy payment link to clipboard'
);
?>
</a>
<script
type=
"text/javascript"
>
function
copyToClipboard
(
e
,
text
)
{
e
.
preventDefault
();
var
$temp
=
jQuery
(
"
<input>
"
);
jQuery
(
"
body
"
).
append
(
$temp
);
$temp
.
val
(
text
).
select
();
document
.
execCommand
(
"
copy
"
);
$temp
.
remove
();
}
</script>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment