Other Payment Providers
// Track revenue after successful payment (amount in cents)
window.Humblytics.trackRevenue(amountInCents, currencyCode);Example Implementation
"use client";
import { useEffect } from "react";
export default function Confirmation({ order }) {
useEffect(() => {
if (!order) return;
const amountInCents = Math.round(order.total * 100);
window.Humblytics.trackRevenue(amountInCents, order.currency);
}, [order]);
return (
<div>
<h1>Thanks for your purchase!</h1>
</div>
);
}Last updated