You’ll need an API key (dashboard → Settings → API Keys) and your store domain registered with FlexyPe during onboarding. See the API Reference for authentication details.
Checkout flow
1
Create a checkout session
Call the Create Checkout Session endpoint with the cart items. The response returns a
session_id you’ll use in the next step. See the API reference for the full request schema, parameters, and a live example.Create Checkout Session
POST /session — create a session and get back a session_id.2
Open the checkout in a webview
Open a webview in your app and load the hosted checkout URL with the The customer completes the entire checkout — login, address, payment — inside the webview.
session_id from the previous step:- React Native
- Flutter
- iOS (Swift)
- Android (Kotlin)
Detecting completion
After a successful payment, the checkout redirects to theredirect_url you set when creating the session. Watch your webview’s navigation events for that URL to know when checkout is complete, then close the webview and continue your app’s post-purchase flow.