Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am frankdilo on github.
  • I am frankdilo (https://keybase.io/frankdilo) on keybase.
  • I have a public key ASDDmELAsCRg8-UGWDQvGVS2DhPYl7hnszNNNTTyk1NH1Ao

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am frankdilo on github.
  • I am frankdilo (https://keybase.io/frankdilo) on keybase.
  • I have a public key ASBN1t8kzPm43tQxTCudc6_CVfxgd44WWGbfOFDR62Ymvgo

To claim this, I am signing this object:

import { GetServerSideProps } from "next";
import Head from "next/head";
import { useEffect, useRef, useState } from "react";
// I suggest to create a read-only Stripe key with access to invoices + customers for this)
const stripe = require("stripe")(process.env.STRIPE_SECRET_KEY_INVOICE_GENERATOR);
export default function InvoicePage(props) {
const invoice = props.invoice;