Widget Parameters

QuickPay provides a comprehensive range of customization options for the widget, facilitated through parameters added as query strings to the widget integration URL.

ParameterTypeDescription
apiKeystringThe unique API key for your merchant account.
amountnumberThe default payment amount to be displayed.
currencystringThe default fiat currency to be displayed.
cryptostringThe default cryptocurrency to be displayed.
languagestringThe language for the widget interface.
layoutstringThe layout mode of the widget (modal, inline, popup).
networkstringThe default blockchain network for crypto payments.
callbackUrlstringWebhook URL for payment completion notifications.
successUrlstringRedirect URL for successful transactions.
cancelUrlstringRedirect URL for cancelled transactions.
autoRedirectbooleanAutomatically redirect after payment completion.

API Key

Your API key uniquely identifies your account and is essential for configuring features like payment processing, webhook support, and other important settings.

With your API key added, your URL will look something like this:

https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx

Amount

The amount parameter sets the default payment amount to be displayed in the widget. This amount will be pre-filled in the payment form.

https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&amount=99.99
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&amount=99.99

Currency

The currency parameter sets the default fiat currency to be displayed. If not specified, the widget will default to CNY.

Supported Fiat Currencies

CurrencyCodeCountry/RegionDescription
Chinese YuanCNY🇨🇳 中国Chinese Yuan Renminbi
Vietnamese DongVND🇻🇳 Việt NamVietnamese Dong
Indian RupeeINR🇮🇳 भारतIndian Rupee
Thai BahtTHB🇹🇭 ประเทศไทยThai Baht
Indonesian RupiahIDR🇮🇩 IndonesiaIndonesian Rupiah
Philippine PesoPHP🇵🇭 PilipinasPhilippine Peso
Malaysian RinggitMYR🇲🇾 MalaysiaMalaysian Ringgit
South Korean WonKRW🇰🇷 대한민국South Korean Won
Japanese YenJPY🇯🇵 日本Japanese Yen
Hong Kong DollarHKD🇭🇰 香港Hong Kong Dollar
Pakistani RupeePKR🇵🇰 پاکستانPakistani Rupee
Bangladeshi TakaBDT🇧🇩 বাংলাদেশBangladeshi Taka
https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&currency=KRW
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&currency=KRW

Crypto

The crypto parameter sets the default cryptocurrency to be displayed. If not specified, the widget will use its recommendation algorithm based on the user's location and preferences.

Supported Cryptocurrencies

CryptoCodeNetworkDescription
BitcoinBTCBitcoinBitcoin (BTC)
EthereumETHEthereumEthereum (ETH)
USDCUSDCEthereumUSD Coin
USDTUSDTEthereumTether
https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&crypto=ETH
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&crypto=ETH

Language

The language parameter sets the interface language for the widget.

Supported Languages

LanguageCodeDescription
EnglishenEnglish (default)
Chinesezh中文
VietnamvnTiếng Việt
https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&language=zh
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&language=zh

Layout

The layout parameter controls how the widget is displayed on your website.

Available Layouts

LayoutDescription
modalOpens in a modal overlay (default)
inlineEmbeds directly in your page
popupOpens in a popup window
https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&layout=inline
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&layout=inline

Network

The network parameter sets the default blockchain network for cryptocurrency payments.

Supported Networks

NetworkCodeDescription
BitcoinbitcoinBitcoin Network
EthereumethereumEthereum Network
PolygonpolygonPolygon Network
BNB Smart ChainbscBNB Smart Chain
ArbitrumarbitrumArbitrum Network
https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&network=ethereum
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&network=ethereum

Callback URL

The callbackUrl parameter specifies a webhook URL that will receive payment completion notifications. The URL should be URL-encoded.

https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&callbackUrl=http://your-site.com/webhook
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&callbackUrl=http://your-site.com/webhook

Success URL

The successUrl parameter specifies a redirect URL for successful transaction completion.

https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&successUrl=http://your-site.com/success
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&successUrl=http://your-site.com/success

Cancel URL

The cancelUrl parameter specifies a redirect URL for cancelled transactions.

https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&cancelUrl=http://your-site.com/cancel
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&cancelUrl=http://your-site.com/cancel

Auto Redirect

The autoRedirect parameter controls whether users are automatically redirected after payment completion.

https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&autoRedirect=false
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&autoRedirect=false

Transaction Timeout

The transactionTimeout parameter sets the timeout duration for transactions in seconds (60-3600).

https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&transactionTimeout=600
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&transactionTimeout=600

Complete Examples

Basic Payment Widget

https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&amount=99.99&currency=CNY&theme=dark
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&amount=99.99&currency=CNY&theme=dark

Cryptocurrency Payment

https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&amount=0.01&crypto=BTC&network=bitcoin&gasStrategy=fast
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&amount=0.01&crypto=BTC&network=bitcoin&gasStrategy=fast

Inline Widget with Callbacks

https://widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&layout=inline&callbackUrl=http://your-site.com/webhook&successUrl=http://your-site.com/success&cancelUrl=http://your-site.com/cancel
https://sandbox-widget.quickpay.best/?apiKey=xxxxxxxxxxxxxxxx&layout=inline&callbackUrl=http://your-site.com/webhook&successUrl=http://your-site.com/success&cancelUrl=http://your-site.com/cancel