Skip to main content

Properties

Source / Destination

Both source and destination have the same structure:

Fee behavior

feeBehavior describes how fees relate to source.amount when you request a quote by source.amount:
  • inclusive (default): the customer pays exactly source.amount, and fees are carved out of it.
  • exclusive: fees are added on top of source.amount. The full source.amount is converted, so the customer receives more crypto than the inclusive quote for the same input.
Set 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.

Using the Quote

Pass the signature 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.
Quotes expire. Check expiresAt and create the transaction before this time. If executable is false, the customer must provide additional information before you can use this quote.

Payment disclosures

Each item in paymentDisclosures identifies a specific piece of text you must render verbatim.

Disclosure IDs

Example