This repository has been archived by the owner on Feb 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
stripecredentials.html
47 lines (45 loc) · 2.04 KB
/
stripecredentials.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
38
39
40
41
42
43
44
45
46
47
<script type="text/javascript">
RED.nodes.registerType('stripe-credentials',{
category: 'config',
defaults: {
name : {value:"", required:true},
stripe_secret : {value:"", required:true},
credit_card_number : {value:"", required:true},
credit_card_expiry_month : {value:12, required:true},
credit_card_expiry_year : {value:2020, required:true},
credit_card_cvc : {value:"123", required:true}
},
credentials: {
credit_card_number: {type: "password", required: true}
},
label: function() {
return this.name;
}
});
</script>
<script type="text/x-red" data-template-name="stripe-credentials">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-config-input-name" placeholder="Name of Stripe Credentials">
</div>
<div class="form-row">
<label for="node-config-input-stripe_secret"><i class="fa fa-tag"></i> Stripe Secret</label>
<input type="text" id="node-config-input-stripe_secret" placeholder="pk_">
</div>
<div class="form-row">
<label for="node-config-input-credit_card_number"><i class="fa fa-lock"></i> Credit Card Number</label>
<input type="password" id="node-config-input-credit_card_number">
</div>
<div class="form-row">
<label for="node-config-input-credit_card_expiry_month"><i class="fa fa-lock"></i> Expiry Month</label>
<input type="number" id="node-config-input-credit_card_expiry_month">
</div>
<div class="form-row">
<label for="node-config-input-credit_card_expiry_year"><i class="fa fa-lock"></i> Expiry Year</label>
<input type="number" id="node-config-input-credit_card_expiry_year">
</div>
<div class="form-row">
<label for="node-config-input-credit_card_cvc"><i class="fa fa-lock"></i> CVC</label>
<input type="text" id="node-config-input-credit_card_cvc">
</div>
</script>