Skip to main content

Landing page and redirection

The landing page link in the response of the pre-order API is a universal link starting with https://app.binance.com/. When parter (client) opens this universal link, the system's behaviors should be as follows:

  • Desktop: the system redirects the link to the system browser and opens Binance Pay Onchain's webpage;
  • Mobile (Binance App installed): the system redirects the link to Binance App and opens Binance Pay Onchain's mini app;
  • Mobile (None Binance App installed): the system redirects the link to the system browser and opens Binance Pay Onchain's mobile webpage;

Regarding the method of opening or loading the landing page link, Binance Pay Onchain requires the following requirements:

  • System browser or Binance App: the only highly recommended method that ensures the best security, product performance, and user experience;
  • Embedded browser: not a recommended approach, and we cannot guarantee the security, product performance, and user experience. If you have special needs that require you to do this, please contact Binance Pay Onchain so that we can customize a solution for you;
  • iframe: not allowed, we cannot guarantee the security, product performance, and user experience. If you use iframe to load the landing page link, Binance Pay Onchain reserves the right to terminate the partnership;

For iOS native, please code like this:

let connectUrl = URL(string: "https://app.binance.com/...")!
UIApplication.shared.open(connectUrl, options: [:])

For Android native, please code like this:

val connectUrl = "https://app.binance.com/..."
val browserIntent = Intent(Intent.ACTION_VIEW, Uri.parse(connectUrl))
startActivity(browserIntent)

For web side, the following normal page redirect methods are all working:

  • HTML <a> tag
<a href="https://app.binance.com/...">Buy with Binance Pay Onchain</a>
  • Window open() Method
window.open("https://app.binance.com/...");
  • JavaScript Window Location
window.location.href = "https://app.binance.com/...";

If you are using frameworks such as React Native that do not apply platform native redirection, which result in unable to redirect to the Binance App normally with Universal Links, please contact Binance Pay Onchain to seek a solution.