Payhip
Setup
- SunLicense: Integrations → Payhip → Connect. Map product IDs or product keys (the
RGsFinpayhip.com/b/RGsF) to policies, or*, and paste your Payhip API key (Settings → Developer). - Payhip Settings → Developer → Webhooks: add the hook URL and tick
paidandrefunded. - For buyers to get the key: if the product has Payhip's software license keys on, buyers already have it and SunLicense uses the same key. Otherwise link the integration's redeem page; buyers enter their order ID and email.
Behaviour
paid: one license per item of the order.refunded: revokes the order's licenses.- Subscription events are logged and ignored.
About Payhip's signature
Payhip signs webhooks with signature = sha256(API key). That value is the same on every request, so it proves the sender knows your API key but not that the body is untouched. The unguessable hook URL is the other half of the check.
