Called when the shopper clicks the button. Create the intent on your server, then return its id.
OptionalopenOptions forwarded to checkout.open() (defaults to mode: 'popup').
OptionalvariantVisual style. Default: primary.
OptionalsizeButton size. Default: md.
OptionallabelButton label preset or custom text. Default: split.
OptionallocaleUI language. Default: en.
OptionalshowShow the “Powered by Hadawi” badge under the button. Default: true.
OptionalshowShow the people / logo icon. Default: true.
OptionaldisabledStart disabled.
OptionalclassExtra class names on the <button> element.
OptionalonCalled if getIntentId throws or returns an invalid id.
CSS selector or DOM element to mount into (contents are replaced).