Quick Exchange
  • Quick Exchange for Partners
  • Expired Quote Handling
  • Widget Integration
    • Embedded Widget
    • Configuration
      • Config Version
      • Settlement Defaults
      • Settlement Parameters
      • Custom Styles
      • Identity
      • Special Layout
      • Partner Fields
    • Event Hooks
  • API Integration
    • Authentication
    • User Session
      • OAuth
      • KYC
    • Settlements
  • Settlements
    • Funding Methods
      • BLOCKCHAIN_TRANSFER
      • BLOCKCHAIN_DELEGATED_BROADCAST
      • CARD_PAYMENT
        • Test Cards
    • Payout Methods
      • BLOCKCHAIN_TRANSFER
      • LIQUID_PARTNER_WALLET
      • LIQUID_WALLET
      • LIQUID_USER_WALLET
  • E-Commerce
    • X-Quoine-Auth
    • Intents (Fixed Settlements)
      • Deliverable Currency
    • Transactions
      • Transaction Status
Powered by GitBook
On this page
  • HTML Javascript
  • React Integration

Was this helpful?

  1. Widget Integration

Embedded Widget

Quick exchange can be embedded into third party webpages through a very simple code snippet.

HTML Javascript

<div id="qex-widget"></div>
<script src="https://partners.liquid.com/static/liquid-qex-widget/index.umd.js"></script>
<script>
  var elem = document.getElementById("qex-widget");
  const qexPlugin = new LiquidQex.QexWidgetApi(elem);
  qexPlugin.init({
    public_api_key: "pk_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  });
</script>

React Integration

import React from "react";
import { QexWidget } from "liquid-qex-widget";

function App() {
  return (
    <div className="App">
      <QexWidget
        config={{
          public_api_key: "pk_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
        }}
      />
    </div>
  );
}

PreviousExpired Quote HandlingNextConfiguration

Last updated 4 years ago

Was this helpful?

Sample embedded widget