Leepa Africa API

Sections

Theme switcher

Purchase Messages

Purchase messages are designed for integrators who want to build and control their own checkout experience. Instead of redirecting customers to a hosted checkout page, integrators request a raw payload from Leepa Africa, which contains all necessary transaction details.

The integrator then signs this payload on the client or server side using their private key, following the EIP-712 structured data signing standard. Once signed, the integrator submits the message back to Leepa Africa's API to finalize the transaction.

This approach gives developers full flexibility over the user interface and transaction flow, while still leveraging Leepa Africa's backend for transaction processing, validation, and reconciliation.

A short demo on how to sign a message using EIP-712 is available here: CodeSandbox EIP-712 Demo

Was this section helpful?

What made this section unhelpful for you?

On this page
  • Purchase Messages