Properties
Source / Destination
Bothsource and destination have the same structure:
For a DeFi token bought through Gateway,
destination.asset includes the token’s caip19.
Fee behavior
feeBehavior describes how fees relate to source.amount when you request a quote by source.amount:
inclusive(default): the customer pays exactlysource.amount, and fees are carved out of it.exclusive: fees are added on top ofsource.amount. The fullsource.amountis converted, so the customer receives more crypto than the inclusive quote for the same input.
feeBehavior on the buy-quote request to choose the behavior. It applies only to source-amount quotes. When you quote by destination.amount, MoonPay ignores the request value and the quote is always fees-inclusive. The response always echoes the effective feeBehavior.
Exchange rate type
exchangeRateType tells you whether the quoted amount is final or an estimate, and pairs with the exchangeRate field:
fixed: the exchange rate is locked at quote time. Card and wallet methods (card, Apple Pay, Google Pay) returnfixed, and the quoted amount is final.floating: the exchange rate is an estimate confirmed when the payment settles. Bank transfers (SEPA) returnfloating.
exchangeRateType is floating, render the estimated crypto amount with a tilde (for example, ~0.2345 BTC) and tell the customer the final amount is set when the transfer settles.
Challenge
challenge is present when the customer must complete a step before this quote
can be executed. It arrives alongside executable: false. Mount the
challenge frame at url, then request the quote
again once the challenge resolves.
challenge on a
quote today. See Upgrade a guest
account.
Using the Quote
Pass thesignature to the payment frame when you mount it. The frame uses this signature along with the quote data to execute the payment and create the transaction.
Payment disclosures
Each item inpaymentDisclosures identifies a specific piece of text you must render verbatim.