PayNow
Connect PayNow with an API key. Analyse creates and manages the webhooks for orders, refunds, chargebacks and subscriptions.
PayNow is the least work to connect: you create one API key and Analyse sets up the webhooks for you.
1. Make a role for Analyse
In the PayNow dashboard, open Access, then Roles, and create a role called Analyse with these permissions:
| Required | Optional |
|---|---|
| View Store | View Subscriptions |
| View Orders | View Affiliate Links |
| View Payments | View Coupons |
| View Webhooks | View Products |
| Create Webhooks | |
| Delete Webhooks |
The optional permissions add subscription details, creator codes from affiliate links, coupon codes and your product catalog.
2. Create an API key
- Open Integrations, then API Keys, and create a key with the
Analyserole. - Copy the token.
3. Connect in Analyse
- In the game's Settings, Integration, choose Connect and pick PayNow.
- Paste the token into API key.
- If the key can reach more than one store, pick the store that sells for this game.
- Choose Connect webhooks. Analyse creates one webhook per event in your PayNow store.
When you disconnect, Analyse deletes the webhooks it created. If someone removes them in PayNow, use Recreate webhooks from the store menu.
Events
| PayNow event | What Analyse does |
|---|---|
ON_ORDER_COMPLETED | Records the order as completed |
ON_REFUND | Marks the refunded lines (or the whole order) as refunded |
ON_CHARGEBACK | Marks the order as a chargeback |
ON_CHARGEBACK_CLOSED | Sets the order back to completed if the chargeback was won |
ON_SUBSCRIPTION_ACTIVATED | Records a new subscription |
ON_SUBSCRIPTION_RENEWED | Records the renewal and its payment |
ON_SUBSCRIPTION_CANCELED | Records the cancellation |
How purchases map
- Player: the Minecraft UUID on the order. Bedrock players buying with an Xbox account are matched to their Floodgate UUID. If only a username is known, it is matched as an offline-mode player. Gifts count for the recipient, not the buyer.
- Package: the PayNow product. Each order line becomes its own row, marked as a one-time purchase, first subscription payment or renewal.
- Creator code: the affiliate link code. Coupon: the coupon code, when the optional permission is granted.
Past payments
Choose Import past payments in the setup dialog to bring in your order history.