This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stripe.setPublishableKey('YOUR_PUBLISHABLE_KEY'); | |
$("#payment-form").submit((event) -> | |
# disable the submit button to prevent repeated clicks | |
$('.submit-button').attr("disabled", "disabled") | |
Stripe.createToken({ | |
number: $('.card-number').val(), | |
cvc: $('.card-cvc').val(), | |
exp_month: $('.card-expiry-month').val(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var https = require('https'); | |
var zlib = require('zlib'); | |
var crypto = require('crypto'); | |
var endpoint = 'YOUR_ENDPOINT'; | |
exports.handler = function(input, context) { | |
var records = input.Records; | |
records.forEach(function(record) { | |
var elasticsearchData = transform(record); |