-
Notifications
You must be signed in to change notification settings - Fork 7
/
publish-widget.html
37 lines (35 loc) · 1.39 KB
/
publish-widget.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="../lib/voucherify.css">
</head>
<body>
<div id="voucher-publish"></div>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.12.2/jquery.js"></script>
<script type="text/javascript" src="../lib/voucherify.js"></script>
<script>
Voucherify.initialize(
"011240bf-d5fc-4ef1-9e82-11eb68c43bf5",
"9e2230c5-71fb-460a-91c6-fbee64707a20"
);
Voucherify.setIdentity("gustav@purpleson.com");
Voucherify.renderPublish("#voucher-publish", {
campaignName: "Flying carpet",
customerFields: [
{ name: "name", required: false },
{ name: "email", required: true },
{ name: "phone", required: false },
{ name: "line_1", required: false },
{ name: "line_2", required: false },
{ name: "city", required: false },
{ name: "postal_code", required: false },
{ name: "state", required: false },
{ name: "country", required: false }
],
onPublished: function(response) {
}
});
</script>
</body>
</html>