Using MoonPay with Mesh

Allow your users to transact through MoonPay using centralized exchanges with the power of Mesh.

Product Overview

Partners who would like for their users to be able to fund their wallets through MoonPay using centralized services such as Coinbase, Kraken, and Robinhood can do so with Mesh enablement.

MoonPay's integration with Mesh allows for more users to transact using their centralised exchange accounts wherever MoonPay is integrated. This further reduces friction by decreasing the number of steps needed to onboard users, even if their existing funds are already in crypto, but not stored with MoonPay. Another step towards MoonPay being all partners need in order to fully enable their users.

When the proper parameters are passed to trigger the Mesh integration, users will be taken directly to a screen within the widget where they may connect their MoonPay account to their centralized exchange of choice.

Product Benefits

  • Widens the audience of users who will be able to successfully fund their wallet through MoonPay.
  • Removes the heavy lifting from partners of finding + building ways capture the large audience of people who are "pseudo-crypto-native" and already bought in on centralized services.
  • Fast and easy to integrate into new and existing MoonPay integrations.

Prerequisites

  • Contact a member of the MoonPay team through "Support" on the MoonPay Dashboard and they will help enable the feature on your account. You can also use [email protected].

MoonPay Integration Guide

  1. Reach out to your MoonPay representative and we will enable your account for Mesh in our backend.
  2. When using the Mesh-connected MoonPay widget, it is important to ensure that base URL is switched to buy.moonpay.com/exchange?[params...] as opposed to buy.moonpay.com/?[params...], found on regular MoonPay On-Ramp integrations.
  3. When initializing the widget, the cex parameter, of type bool, must be present with a value of true. This is shown in the code below.
  4. When initializing the widget, if you would like to specify which centralized service to which your users are directed, you may optionally include the exchange parameter, of type string. This is shown in the code below. If you this parameter is not included, users will have the option to choose from a set of available services. Allowed values for this parameter can be found here.
 const configuration = {
    apiKey,
    defaultCurrencyCode: "eth",
    baseCurrencyAmount: "50", // NOTE: Minimum for most currencies is ~$30 USD
    cex: true,
    exchange: "coinbase",
    // Rest of initialization code to be continued below...

❗️ Important Note: When cex is set to true, the following parameters are always required:

  • apiKey
  • currencyCode
  • redirectUrl
  • walletAddress
  • signature

✍️

Example URL, for reference:

https://buy.moonpay.com/exchange?apiKey=pk_live_jfhWEt55szMLar8DhQWWiDwteX1mftY¤cyCode=btc&cex=true&exchange=coinbase&walletAddress=bc1qdy0wttv70vx3y4y5drzw4qm2aa2vn3rp2xhdr9&redirectUrl=https://moonpay.com