Hosted Checkout Redirect: Trial Support + New Parameters
Freemius supports redirecting the Hosted Checkout after a successful purchase. This enables immediate post-purchase handling for SaaS and apps when you prefer not to wait for webhooks and want to process data right away.
We discovered that redirects were not triggering for Free Trials. We’ve fixed the issue to ensure trials behave consistently with paid purchases.
Alongside the fix, the redirect now includes additional query parameters so you can branch your logic without extra API calls:
action
– One ofpurchase
,license_update
,payment_method_update
, ortrial
, indicating the type of action performed.trial
– For trials, eitherfree
orpaid
, describing the trial type.trial_ends_at
– For trials, aYYYY-MM-DD HH:MM:SS
timestamp indicating when the trial ends.