-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathuangme.phtml
34 lines (32 loc) · 1.05 KB
/
uangme.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
?>
<script>
require([
'uiLayout',
'jquery'
], function (layout, $) {
$(function () {
var paymentMethodData = {
method: 'uangme'
};
layout([
{
component: 'Xendit_M2Invoice/js/view/payment/method-renderer/multishipping/uangme',
name: 'payment_method_uangme',
method: paymentMethodData.method,
item: paymentMethodData
}
]);
if(window.checkoutConfig.payment[paymentMethodData.method].image != ""){
$("label[for=p_method_"+paymentMethodData.method+"]")
.prepend('<img class="xendit-payment-icon" src="'+window.checkoutConfig.payment[paymentMethodData.method].image+'" />');
}
$('body').trigger('contentUpdated');
})
})
</script>
<!-- ko template: getTemplate() --><!-- /ko -->