Skip to content

Instantly share code, notes, and snippets.

@thexs-dev
thexs-dev / PayPal IPN Server.gs
Created March 24, 2018 19:48
Google Apps Script web app listening to PayPal IPN messages for subscriptions management
function doPost(e) {
try {
var sprops = backoff(function(){
return PropertiesService.getScriptProperties().getProperties();
});
var base = FirebaseApp.getDatabaseByUrl(sprops.firebaseUrl, sprops.firebaseSecret);
var glog = new cLog("IpnPaypal", sprops.RECEIVER_EMAIL); // just for logging errors
var isProduction = sprops.Production == "true";
@thexs-dev
thexs-dev / designer.html
Last active August 29, 2015 14:16
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;