Skip to content

Instantly share code, notes, and snippets.

@chrisjangl
Created April 11, 2022 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisjangl/202ab901d12bb9c27d0c6aa00ae5c6f9 to your computer and use it in GitHub Desktop.
Save chrisjangl/202ab901d12bb9c27d0c6aa00ae5c6f9 to your computer and use it in GitHub Desktop.
First attempts to create a Stripe invoice using the Stripe CLI
INVOICE_ID=""
CUSTOMER_ID=""
FOOTER=""
DESCRIPTION=""
stripe invoices create --customer=${CUSTOMER_ID} --days-until-due=1 --footer=\"${FOOTER}\" --collection-method=\"send_invoice\" -d \"metadata[invoice]\"=${ID} --description="${DESCRIPTION}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment