Create an account

API keys

Get the the publishable key, and the signing secret in the developper section of your Stripe account.

Set the variable VUE_APP_STRIPE_PUBLISHABLE_KEY

Set the variable STRIPE_WEBHOOK_SIGNING_SECRET

Create a Webhook

Create a new webhook in Stripe so as to get events change in your database. Add the API Endpoint URL or the Hookdeck URL.

Stripe Events

  • checkout.session.completed
  • customer.created
  • customer.deleted
  • customer.source.created
  • customer.source.deleted
  • customer.source.expiring
  • customer.source.updated
  • customer.subscription.created
  • customer.subscription.deleted
  • customer.subscription.updated
  • invoice.created
  • invoice.deleted
  • invoice.paid
  • price.created
  • price.deleted
  • price.updated
  • product.created
  • product.deleted
  • product.updated

Pricing Table

Set the variable VUE_APP_STRIPE_PRICING_TABLE

Products

Quotas / Billing usage: Add metadata with the name of the table and the number of the max value.