Embed payment forms on your website in 60 seconds.
Quick Start
Replace FORM_ID with your actual form ID from the FormPesa dashboard.
<!-- Paste anywhere in your <body> --><iframesrc="https://formpesa.wasmer.app/f/FORM_ID/embed"style="width:100%;max-width:480px;height:600px;border:none;"scrolling="no"title="Payment Form"></iframe>
Zero dependencies. Works with any website, any stack. Auto-resizes to form height.
Works with Next.js, Remix, Vite, and Create React App. Dynamically loads the SDK script.
// Add to functions.php or a custom pluginadd_shortcode('formpesa', function($atts) {
$id = esc_attr($atts['id'] ?? '');
return"<iframe src='https://formpesa.wasmer.app/f/{$id}/embed'
style='width:100%;max-width:480px;height:600px;border:none;overflow:hidden;'
scrolling='no'></iframe>";
});
// Then use in any post or page:
[formpesa id="xyz"]
Supports Classic Editor, Gutenberg (use Shortcode block), and page builders like Elementor.