PluginProbe
HyperPay Payments / 5.3.0
HyperPay Payments v5.3.0
6.6.0 trunk 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.1.0 2.2.0 2.3.0 2.3.1 2.3.2 2.3.3 3.0.0 3.0.5 4.0.0 4.0.2 All 34 releases
hyperpay-gateways / src / assets / js / click_to_pay.js

click_to_pay.js in HyperPay Payments 5.3.0, at src/assets/js/click_to_pay.js

52 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 wpwlOptions = {
2 onReady: function () {
3 jQuery('.wpwl-container-virtualAccount-CLICK_TO_PAY').after(jQuery('.wpwl-container-card '))
4 jQuery(".wpwl-control-clickToPayAccessMyCards").val(hyperpay_dataObj_click_to_pay.email)
5 },
6
7 onError: function (e) {
8 if (['not_enrolled', "add_new_card", "otp_channel_invalid"].includes(e.event)) {
9 jQuery('.wpwl-form-card').show()
10 window.location.href = `#${jQuery('.wpwl-container-card')[0].id}`
11 }
12 },
13
14 clickToPay: {
15 "cardList": {
16 "displayCardListByDefault": true,
17 "displayCancelOption": true,
18 "displayAddCard": true,
19 "displayPreferredCard": false,
20 "displaySignOut": true,
21 "displayHeader": false,
22 "cardSelectionType": 'gridView',
23 "unacceptedCard": '',
24
25 },
26 "otpScreen": {
27 "displayOtpScreenByDefault": false,
28 "displayCancelOption": true,
29 "displayHeader": true,
30 //"type": 'overlay',
31 "autoSubmit": false,
32 "hideLoader": false,
33 "displayRememberMe": false,
34 "otpResendLoading": false,
35 "displayPayAnotherWay": true
36 },
37 "srcMark": {
38 "height": '40',
39 "width": '200',
40 "darkTheme": false
41 },
42 "learnMore": {
43 "displayCloseButton": true,
44 "displayOkButton": true,
45 }
46
47 }, //clickToPay
48 paymentTarget: "_top",
49 style: "card"
50 } //wpwlOptions
51
52