PayNow

Webhooks

Send store events to Discord as embeds, or to your own systems as JSON.

Webhooks push notifications about store events somewhere else: a Discord channel, or your own endpoint. Most stores post sales into Discord, which doubles as social proof.

Dashboard → Integrations → Webhooks. Needs webhook_read. Available on every plan including Free.

For JSON webhooks, payload schemas and delivery semantics are in the developer docs. This page covers setup in the dashboard.

These webhooks notify. They do not deliver anything to the customer. If your store is not running a game server, the endpoint that fulfils orders is a delivery webhook and it is set up separately. See Delivery Methods.

Creating a Discord webhook

1. Create the webhook in Discord

If you haven't made one before, follow Discord's Intro to Webhooks. You need the resulting webhook URL.

2. Add it to PayNow

  1. Go to Integrations → Webhooks.
  2. Click Create Webhook in the top right.
  3. Paste the Discord webhook URL as the Endpoint URL.
  4. Choose the Type, Discord (v1) or JSON (v1). Pasting a Discord URL selects Discord automatically.

3. Subscribe to one event

In Event Triggers, select a single event. Start with Order Completed.

Use one webhook entry per event. Each event carries different variables, and one embed template can't render all of them. Separate entries also let you send refunds to a private staff channel while sales go to a public one.

4. Edit the embed

Write the embed in Discord Embed Template. The dialog doesn't list the variables for the event, but Discord Placeholders covers all of them. Ready-made embeds are on Steam Templates and Minecraft Templates. Press Create when it looks right.

5. Repeat for other events

Repeat for Refunds, Chargebacks, Subscriptions and anything else you want to see, adjusting the variables each time.

The Create Webhook dialog with the Discord type selected and the Order Completed event subscribed.

Which channel should receive what

EventSuggested destinationWhy
Order CompletedPublic channelVisible sales are social proof and drive more sales.
RefundsPrivate staff channelNot something to broadcast.
ChargebacksPrivate staff channelNeeds a staff response, not an audience.
Subscription eventsStaff channelUseful for spotting churn early.

Think before posting orders publicly. The embed can include customer names and purchase details. Some communities love a sales feed; others treat it as a privacy problem, especially where the purchase reveals something about the player. Include only the variables you'd be comfortable seeing about yourself.

Treat the webhook URL itself as a secret. Anyone holding it can post to that channel as your bot, so don't share it and mask it in screenshots.

Managing a webhook

Click a webhook in the list to open its page. Webhook Details shows its Webhook ID, the events it is Subscribed to, its Type and its URL.

  • Edit Webhook reopens the form you created it with, as Modify Webhook. Needs webhook_update.
  • Remove Webhook deletes it. Needs webhook_delete. Any events not yet delivered are lost, and it can't be undone.

Signing secret

Every webhook has a Signing secret, which a JSON endpoint uses to validate that a webhook really came from PayNow. Click Reveal secret to show and copy it.

Rotate Secret replaces it with a new one. Do it if the secret leaks, then update your endpoint with the new secret straight away, as the Rotate Signing Secret confirmation warns.

Webhook History

Every event sent to the webhook, with its delivery state. Needs webhook_history_read. Filter with All, Succeeded, Pending or Failed.

StatusMeaning
SuccessDelivered.
PendingQueued, not delivered yet.
RetryingAn earlier attempt failed and PayNow is trying again. The badge shows when the next try is due.
FailedDelivery failed and is no longer retrying.

Click an event to open it. You see the Payload that was sent, when it was Enqueued at, the Next retry at if one is scheduled, and the Execution Attempts: one row per try, with its Status Code, the Response your endpoint returned and when it was Attempted at. Request failed in place of a status code means no response came back at all.

When deliveries fail, read the Response first. It is what your endpoint, or Discord, sent back, and it usually names the problem.