Mt Pelerin
Buy cryptoSell cryptoSupportContact
On/Off-Ramp & Swaps
On/Off-Ramp & Swaps
  • 👋Introduction
  • đŸ”ĨWhy Mt Pelerin?
  • 👨‍đŸ’ģIntegration guides
    • 📍Getting started
    • đŸ–Ĩī¸Web integration
    • 📱Mobile integration
    • âš™ī¸Parameters and customization
      • General parameters
      • On ramp parameters
      • Off ramp parameters
      • Swap parameters
      • Automating the end user address validation
      • Branding parameters
    • âŒ¨ī¸APIs
    • ❕Events
  • 🧑‍đŸ’ŧService information
    • 💲Revenue sharing
    • 💱Chains and currencies
    • đŸ’ŗPayment methods
    • 💰Pricing & limits
    • âŗDelivery times
    • 🆔Identity verification
    • 🌍Supported countries
    • 📩User notifications
  • â„šī¸Additional information
    • 🔧Support
    • 🇨🇭About Mt Pelerin
    • 📋Changelog
Powered by GitBook
On this page
  1. Integration guides

Events

PreviousAPIsNextRevenue sharing

Last updated 2 months ago

Transaction success event

When a user has reached the end of a buy/swap/sell process, you can listen for the following postMessage event:

{ type: 'paymentSubmitted', data: { paymentType, paymentId } }

paymentType: bankTransfer|card|crypto

This can be used to trigger a navigation to the desired post-transaction screen or page.

Documentation:

👨‍đŸ’ģ
❕
https://developer.mozilla.org/en-US/docs/Web/API/Window/message_event