In addition to the Checkout URL feature, we have provided an even quicker way of integration, using a sample piece of HTML, CSS, and Js snippet.
See the snippet below;
<!DOCTYPEhtml><htmllang="en"> <head> <metacharset="UTF-8" /> <metahttp-equiv="X-UA-Compatible"content="IE=edge" /> <metaname="viewport"content="width=device-width, initial-scale=1.0" /> <title>XendBridge</title> <linkrel="preconnect"href="https://fonts.googleapis.com" /> <linkrel="preconnect"href="https://fonts.gstatic.com"crossorigin /> <linkhref="https://fonts.googleapis.com/css2?family=DM+Sans&display=swap"rel="stylesheet" /> <linkrel="stylesheet"href="https://inline.xendbridge.com/style.css" /> </head><!-- The onload event is used to call the onLoadFunctions() function when the page is loaded --> <bodyonload="onLoadFunctions()"> <divclass="wrapper"> <divclass="card-box"> <divid="logo"></div> <divid="toast"></div> <divid="pageloaderbackdrop"><divid="pageloader"></div></div> <divid="orderTypes"></div> <divid="buyOrderForm"></div> <divid="sellOrderForm"></div> <divid="swapOrderForm"></div> <divid="buyFiatPaymentMethod"></div> <divid="buyCryptoPaymentMethod"></div> <divid="buyConfirmPurchase"></div> <divid="buyAccessCode"></div> <divid="sellFiatPaymentMethod"></div> <divid="sellCryptoPaymentMethod"></div> <divid="sellConfirmPurchase"></div> <divid="sellAccessCode"></div> <divid="payinFiatPaymentMethod"></div> <divid="receiveinFiatPaymentMethod"></div> <divid="swapFiatConfirmPurchase"></div> <divid="payinCryptoPaymentMethod"></div> <divid="receiveinCryptoPaymentMethod"></div> <divid="swapCryptoConfirmPurchase"></div> <divid="trademark"></div> </div> </div><!-- Ensure to add your public key and BASEURL(sandbox / production) to the enclosed script tag below. --> <script>let publicKey ="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";letBASEURL="https://checkout-api-sandbox.xendbridge.com"; </script> <scriptsrc="https://inline.xendbridge.com/script.js"></script> </body></html>
The only parameters needed to be provided by the third party are the publicKey which can be gotten from the application created on the third party's dashboard and the baseUrl which can be any of the available environments below;