Skip to main content
@reeple/sdk is a browser/DOM-based library (it renders a modal and iframe) — it does not run inside Flutter’s Dart runtime. There is no native Reeple SDK for Flutter. The pattern below is the standard workaround used for web-based checkout SDKs on mobile: load a small hosted HTML page in a WebView and bridge its events back to Dart via a JavaScript channel.

1. Host a bridge HTML page

Host this page yourself (e.g. as a static file on your own domain) — it embeds the CDN script and posts SDK events back through a JavaScript channel named ReepleChannel.
reeple-checkout.html
Pass the payment details as query params when loading the page from the WebView (see below).

2. Load it from Flutter

pubspec.yaml
checkout_screen.dart
Verify the payment on your server using the reference from the success payload — see Callbacks & Verification. Never mark an order paid based solely on the WebView message.