You do not need another WordPress plugin to show purchase notifications. A four-line wp_footer hook loads the Provedly script, and a second hook on woocommerce_payment_complete sends each paid order to the Records API. The one thing to understand up front is which of those orders can carry the "Verified purchase" mark, because the answer depends on how your checkout talks to Stripe.
Prefer a plugin? Provedly is now on WordPress.org. It loads the widget and bars, creates the signed WooCommerce webhook for you (so every paid order earns the Verified mark) and passes the visitor id for attribution, with no code. See Provedly is now on WordPress.org. The hand-written route below still works if you would rather not add a plugin.
Install the script with wp_footer
Add this to your child theme's functions.php. If you do not have a child theme, create one first; editing the parent theme means losing the change on the next theme update.
add_action('wp_footer', function () {
echo '<script src="https://provedly.app/w/widget.js" data-token="pp_your_token" async defer></script>';
});
That is the whole install. The script is about 6 KB gzipped, loads asynchronously, and renders in a Shadow DOM so your theme's CSS and the widget's CSS never meet. Caching plugins are fine; the tag itself is static and the widget fetches its own config from Provedly on load.
If your host locks down functions.php, most block themes let you paste the same tag into a footer template part as a Custom HTML block. Either way, the tag should appear once per page.
Decide where it shows
Provedly's URL targeting handles the "not on the checkout page" question without PHP conditionals. In the dashboard, set the widget to "all except" and list /checkout/*, /my-account/* and /cart/. Showing a stranger's purchase to someone who is mid-payment is a distraction, not encouragement.
Device targeting lives in the same place. On narrow screens a toast competes with the add-to-cart button, so some stores show toasts on desktop only and keep the live counter on both.
Send WooCommerce orders to the Records API
WooCommerce fires woocommerce_payment_complete once an order is paid. Hook it, build the payload, and post server to server. The API key is per widget and lives in the Data tab; keep it in wp-config.php, not in the theme.
add_action('woocommerce_payment_complete', function (int $order_id) {
$order = wc_get_order($order_id);
if (! $order) {
return;
}
$item = current($order->get_items());
wp_remote_post('https://provedly.app/api/v1/widgets/pp_your_token/records', [
'headers' => [
'Authorization' => 'Bearer ' . PROVEDLY_API_KEY,
'Content-Type' => 'application/json',
],
'body' => wp_json_encode([
'name' => $order->get_billing_first_name() . ' ' . $order->get_billing_last_name(),
'city' => $order->get_shipping_city() ?: $order->get_billing_city(),
'state' => $order->get_shipping_state() ?: $order->get_billing_state(),
'country' => $order->get_shipping_country() ?: $order->get_billing_country(),
'product_name' => $item ? $item->get_name() : null,
'price' => wp_strip_all_tags($order->get_formatted_order_total()),
'external_id' => (string) $order->get_id(),
'occurred_at' => $order->get_date_paid()->format(DATE_ATOM),
]),
'timeout' => 5,
]);
});
A few notes on the fields. country must be the two-letter ISO code, which is what WooCommerce stores anyway. external_id makes the call idempotent; if the hook fires twice for one order, the second request returns 422 and nothing duplicates. The name you send is reformatted by your name format setting before anyone sees it, so sending the full name is fine; by default the widget shows "Sarah M.".