Wonder

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

  1. Your backend calls create orderAPI to create the payment intent and obtain an order number.
  2. If you want tokenisation or saved-card reuse, your backend also need to create customerAPI and passes the resulting customer uuid into SDK configuration.
  3. Your app initialises the SDK with appId, environment, fromscheme, locale, optional wallet configs, and optional UI customisation.
  4. Your app opens the payment flow by calling present for immediate payment, or select + pay if you want the payer to pre-choose a method.
  5. The payer completes payment, then the SDK returns a client-side result callback.
  6. 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.