Learn how to set up Polar with ShipThing.
Settings
, scroll to Developers
and click New token. Enter a name for the token, set the expiration duration
and select the scopes
you want the token to have. To keep it simple, you can select all scopes.
polar
object:
/api/polar/checkout
endpoint.
apps/web/api/polar/checkout/route.ts
.
subscription.created
subscription.updated
subscription.canceled
order.created
POST /webhooks/polar
route in the apps/api
app. This route constructs the event and then switches on the event type to determine how to process the event.
Webhook
handler for you. You can modify it as needed.