This file contains 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.applePay.checkAvailability(console.log); | |
var btn = document.createElement("button"); | |
btn.innerText = "Apple Pay Jiggery Pokery"; | |
btn.onclick = function () {Stripe.applePay.buildSession({ | |
countryCode: 'US', | |
currencyCode: 'USD', | |
total: { | |
label: 'Apple Pay Test', | |
amount: '10.00' |
This file contains 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
package main | |
import( | |
"fmt" | |
"log" | |
"encoding/json" | |
"net/http" | |
"os" | |
"github.com/stripe/stripe-go/client" | |
"github.com/stripe/stripe-go" |
This file contains 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
/** | |
* Responds to any HTTP request that can provide a "message" field in the body. | |
* | |
* @param {!Object} req Cloud Function request context. | |
* @param {!Object} res Cloud Function response context. | |
*/ | |
exports.webhook = (req, res) => { | |
// Required environment variables: | |
// WEBHOOK_SIGNING_KEY -- the whsec_xxx value displayed when you enable webhook signing for your endpoint |
This file contains 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
-- A quick hammerspoon to use the buttons on my Akai LPD8 | |
-- which is a pretty fun little drum pad that can be had | |
-- for $40-50 bucks if you shop around: | |
-- https://images.reverb.com/image/upload/s--TanFLw05--/t_card-square/v1571420337/zzyfza1vf8wsxjynymgr.jpg | |
devices = hs.midi.virtualSources() | |
lpd8 = hs.midi.new(devices[1]) | |
held = {} |
This file contains 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
// To appease Maven, put this file in src/main/java/example/HelloStripe.java | |
// cd your-copy-of-this-project | |
// mkdir -p src/main/java/example/ | |
// mv HelloStripe.java src/main/java/example/ | |
package example; | |
import java.util.HashMap; | |
import java.util.Map; |