npm install @xenarch/react. Source: xenarch-sdks/js/react. See checkout embed.
- The modal and inline frames now allow the pay page to copy to the clipboard (
allow="clipboard-write https://pay.xenarch.com", granted to the pay page only). Before, the Copy buttons for the address, amount and WalletConnect link wrote nothing inside the frame. If your site sends aPermissions-Policyheader, allowclipboard-writeforhttps://pay.xenarch.com. XEN-690 - Tested with real wallets on Base: WalletConnect payments and the scan-to-pay QR work from both modal and inline frames, with or without this grant. XEN-690
- First release:
<XenarchCheckout linkId="…" />renders a pay button for a pay link. - Redirect mode sends the buyer to the hosted pay page and back to your page with
xenarch_paid,link_idandtx_hash. - Modal and inline modes open the pay page in a frame and report the result to your callbacks.