Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,19 @@ GET /products/{product_id}/check_license?license=LICENSE_KEY
"status": "active",
"expires": "2024-12-31",
"customer_name": "John Doe",
"customer_email": "john@example.com"
"customer_email": "john@example.com",
"renewal_url": "https://example.com/renew?license={license_code}&email={email}"
}
}
```

The `renewal_url` field is optional in the license verification response. When present and the license status is `expired`, a renewal link is displayed on the admin license page. The URL supports two placeholders that are replaced automatically:

- `{license_code}` — replaced with the stored license key
- `{email}` — replaced with the `buyer_email` from the license data

A static URL without placeholders (e.g., `https://example.com/renew`) is also supported.

### Ping Endpoint

```
Expand Down
1 change: 1 addition & 0 deletions tests/IntegrationLicenseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,5 @@ public function get_license_renewal_url_returns_url_without_placeholders() {
$integration->get_license_renewal_url()
);
}

}