Payment SDK
Payment SDK lets you embed Wonder's pre-built checkout experience directly inside your own mobile app, instead of sending users to an external payment page. The backend model stays the same as standard online payments — you still create the order on your server first — while the frontend payment experience is delivered through native SDKs for iOS, Android and Flutter.
Workflow
- Your backend calls create orderAPI to create the payment intent and obtain an
order number. - If you want tokenisation or saved-card reuse, your backend also need to create customerAPI and passes the resulting customer uuid into SDK configuration.
- Your app initialises the SDK with
appId,environment,fromscheme,locale, optional wallet configs, and optional UI customisation. - Your app opens the payment flow by calling
presentfor immediate payment, orselect+payif you want the payer to pre-choose a method. - The payer completes payment, then the SDK returns a client-side result callback.
- After receiving the callback, your backend should call get orderAPI to confirm the final server-side payment status.
INFO
If you do not yet have an appId, please create one by following the steps in the document: Create your AppID via the Wonder PortalDOC.
iOS SDKLaunches Wonder's pre-built payment page within your iOS native app to complete payment.Android SDKLaunches Wonder's pre-built payment page within your Android native app to complete payment.Flutter SDKEncapsulate the same set of APIs so that the Flutter app can also reuse the Wonder checkout.