| configId | yes | none | the Boson Protocol environment the widget is linked to (see Boson Environments) | "production-137-0" |
| sellerId | When offerId is not used | none | specifies the Boson Seller ID that publishes the Product being offered with the plugin. | "2" |
| productUuid | When offerId or bundleUuid are not used | none | specifies the ProductUUID of the Product being offered with the plugin. | "2540b-1cf7-26e7-ddaf-4de1dcf7ebc" |
| bundleUuid | When offerId or productUuid are not used | none | specifies the BundleUUID of a Phygital Offer being offered with the plugin. | "4d5262-28cf-d860-06f-6406bd65fa10" |
| offerId | When sellerId/productUuid or sellerId/bundleUuid are not used | none | specifies the ID of the Offer being offered with the plugin. Note: an offer ID is the low-level identification of the Boson Offer on-chain, while a Product can match several offers, like several variants (size, color, ...)). | "1099" |
| account | none | the address of the wallet the widget should accept. When specified, the user can't connect any other wallet that the one specified. This parameter is optional and can be used if you want to prevent the user to use the Commit Widget if they don't connect with the given wallet. | "0x023456789abcd0213456789abcd213456789abcd" | |
| context | no | "iframe" | the way the widget and the purchase overview open: "iframe" to see them in the same window or "popup" to open them in a new window. | "popup" |
| lookAndFeel | no | "modal" | the look and feel for the widget ("regular" or "modal"). When set to "modal", allow to define a margin around the widget to be appearing like a modal popup. | "modal" |
| modalMargin | no | "2%" | the margin to apply around the widget when lookAndFeel is set to "modal" | "5%" |
| buttonStyle | no | none | the allowed styles of the commit button | { minWidth: "100px", minHeight: "200px", shape: "rounded", color: "white"} |
| buttonStyle.minWidth | no | none | the commit button min width | "100px" |
| buttonStyle.minHeight | no | none | the commit button min height | "200px" |
| buttonStyle.shape | no | "sharp" | the commit button shape: "sharp","rounded" or "pill" | "rounded" |
| buttonStyle.color | no | "green" | the commit button color: "green","black" or "white" | "white" |
| onGetDimensions | no | none | the callback that is called with the actual dimensions of the commit button in its iframe | onGetDimensions: ({offsetHeight, offsetWidth, boundingClientRect}) => console.log({offsetHeight, offsetWidth, boundingClientRect}) |
| onClickCommitButton | no | none | the callback that is called after clicking on the commit button and just after the commit widget is called to be opened | onClickCommitButton: () => console.log("you clicked on the commit button!") |
| onClickTagline | no | none | the callback that is called after clicking on the tagline and just after the purchase overview widget is called to be opened | onClickTagline: () => console.log("you clicked on the tagline!") |
| onCloseCommitButton | no | none | the callback that is called when the commit widget is closed | onCloseCommitButton: () => console.log("commit button widget was closed!") |
| onCloseTagline | no | none | the callback that is called when the purchase overview widget is closed | onCloseTagline: () => console.log("purchase overview widget was closed!") |
| containerStyle.justifyContent | no | none | the commit button container justify-content | center |
| containerStyle.alignItems | no | none | the commit button container align-items | flex-end |