Skip to main content
Fires when a payment is processed successfully. Use this event for revenue tracking and payment analytics.

JavaScript

window._upstack('track', 'payment_succeeded', {
  accountId: 'acct_abc123',
  invoiceId: 'inv_ghi012',
  subscriptionId: 'sub_def456',
  amount: 9900,
  currency: 'USD'
});

Properties

PropertyTypeRequiredDescription
accountIdstringYesAccount identifier
amountnumberYesPayment amount in cents
invoiceIdstringNoInvoice identifier
subscriptionIdstringNoSubscription identifier
currencystringNoISO 4217 currency code

When to Fire

  • When charge succeeds
  • When invoice is paid
  • When Stripe invoice.paid webhook fires

Stripe Webhook

Maps to invoice.paid or charge.succeeded.