Compare commits

...

2 Commits

Author SHA1 Message Date
718b24e6be Update events list 2026-01-14 22:51:45 -07:00
bc98bc9e1d Add note about testing builds 2026-01-14 22:49:44 -07:00
2 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,10 @@ The PostalPoint plugin API is a globally-available object named `global.apis`.
### API List
Note: API functions shown here are available in the
[latest testing build](https://build.netsyms.net/job/PostalPoint_Retail/),
but may not yet be present in the most recent release.
#### Core
`global.apis.`:

View File

@ -11,6 +11,8 @@ Plugins can use `global.apis.eventbus` to receive events when certain actions ha
* `transactionFinished`: Contains a receipt object of a transaction that was just finalized.
* `receiveFromCustomerScreen`: Contains the event sent from the customer-facing display's custom HTML interface via `window.parent.postMessage`
* `customerSignatureCollected`: Contains a signature image from the customer-facing display, in the structure `{"svg": "data:image/svg+xml;base64,...", "png": "data:image/png;base64,..."}`.
* `settingsSaved`: Emitted when PostalPoint's settings are saved. Usually this means the user changed a setting in the UI.
* `pluginSettingsSaved`: Emitted when the user saves a plugin's settings. The plugin ID is sent as the event data.
## Example Code