> For the complete documentation index, see [llms.txt](https://docs.humblytics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.humblytics.com/how-to-track-purchase-events/other-providers.md).

# Other Payment Providers

Use another payment provider? Send each sale to Humblytics with one line of code on your confirmation page.

{% hint style="warning" %}
**This only works if you control the page buyers see after paying**, and that page loads the Humblytics script. Checkouts that stay on the provider's domain from start to finish, such as **Shop Pay / Shopify Payments**, can't be tracked this way.
{% endhint %}

## Add the code

On your order confirmation page, or in the callback that runs when a payment succeeds, add:

```javascript
window.Humblytics.trackRevenue(amountInCents, "USD");
```

* **`amountInCents`:** the order total in cents, as a number. For example, $49.00 is `4900`.
* **Currency:** a three-letter code such as `"USD"` or `"EUR"`. If you leave it out, it defaults to USD.

## Example

```jsx
useEffect(() => {
  if (!order) return;
  window.Humblytics.trackRevenue(Math.round(order.total * 100), order.currency);
}, [order]);
```

Run it only once per order, so a page reload doesn't count the same sale twice.

This works for Paddle, ReCharge, and custom checkouts where you control the page after payment. Not sure about your setup? Email **<support@humblytics.com>** before you rely on the numbers.

{% hint style="info" %}
Revenue sent this way can take up to 24 hours to appear in **Attribution**. To check that the event fired, open your browser's DevTools, go to the **Network** tab, and look for a request to `humblytics.com` right after purchase.
{% endhint %}
