Generate the ProAbono pricing table embed
generate_pricing_tableGenerates the embed code for a ProAbono pricing table, supporting anonymous public pages or identified customers who can subscribe in place. Configure plan behavior in the BackOffice.
Instructions
Generates the embed that renders the ProAbono pricing table inside a page of the merchant's site. Two flavours: anonymous for a public pricing page, or identified for a signed-in customer, who can then subscribe in place -- which needs the customer reference and the security hash. What happens when a plan is chosen is configured in the BackOffice, not in this code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack | Yes | The host project's stack. Detect it from the open project (package.json, composer.json, requirements.txt, Gemfile, .csproj) and confirm with the developer. Use "generic" when none fits. | |
| identified | Yes | true for a signed-in customer who can subscribe in place; false for the public anonymous table. | |
| target_page | Yes | Path of the page that will host the table, e.g. "/pricing". |