-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
70 lines (59 loc) · 2.4 KB
/
index.php
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Checkout | E-Shopper</title>
<script src="https://p-uat.kushkipagos.com/kushki/kushki/kushki.min.js"></script>
</head><!--/head-->
<body>
<!--/header-->
<!--/#cart_items-->
<section id="payment">
<div class="container">
<div class="review-payment">
<h2>Pago seguro</h2>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<!-- Kushki Snippet Begins -->
<button onclick="runCode()">Test</button>
<script lang="javascript">
function runCode() {
var kushki = new Kushki({merchantId: '10000001641080185390111217', inTestEnvironment: true});
var cardData = {
name: 'Jose',
number: '4242424242424242',
cvc: "123",
expiryMonth: '12',
expiryYear: '21'
};
var callback = function (response) {
console.log(response)
};
kushki.requestToken({
amount: '49.99',
isDeferred: false,
card: cardData
}, callback);
}
</script>
<!-- Kushki Snippet Ends -->
</div>
</div>
</div>
</section>
<footer id="footer"><!--Footer-->
<div class="footer-bottom">
<div class="container">
<div class="row">
<p class="pull-left">Copyright © 2017 Kushki All rights reserved.</p>
</span></p>
</div>
</div>
</div>
</footer><!--/Footer-->
</body>
</html>