Leepa Africa API

Sections

Theme switcher

Button Embed

Best for: Websites and applications that want seamless payment buttons with minimal development effort

This method allows you to embed customizable payment buttons directly into your website with just a single script tag.Look:

Prerequisites:

  • A product created via the merchant dashboard
  • Basic HTML/JavaScript knowledge for customization

Implementation:

After creating your product, you'll receive an HTML code snippet:

HTML

After receiving the snippet, you can embed it as shown in this Demo project's index.html with various changes to button attributes for your brand.

Customization Options:

  • Button Color: Modify the data-color attribute to match your brand
  • Button Size: Additional sizing options available in the button library
  • Custom CSS: Apply additional styling to integrate with your design syste
  • Product Id: Modify the data-id attribute to reuse for another product
Was this section helpful?

What made this section unhelpful for you?

On this page
  • Button Embed