Skip to main content

Payments

Accept a payment, confirm it on your server, and deliver the purchase to your customer. These guides walk you through that flow with NextAppMarket, then show you how to recover interrupted payments and issue refunds.

If you are integrating a native app, start with Alipay App or WeChat App. If you are starting your backend as well, follow Build your first checkout first.

Choose how your customer pays​

Your checkoutGuideWhat your client receives
Android or iOS app, AlipayAlipay AppA signed string for the Alipay SDK.
Android or iOS app, WeChatWeChat AppSigned fields for a WeChat SDK payment request.
Mobile website, WeChatWeChat H5A URL that opens the WeChat payment flow.
Screen or desktop checkout, WeChatWeChat QR codeA provider payment URI to encode as a QR code.
Mobile website, AlipayAlipay mobile webHosted checkout instructions.
Desktop website, AlipayAlipay desktop webA hosted checkout URL.
Screen or desktop checkout, AlipayAlipay QR codeA hosted checkout URL to encode as a QR code.
Android app, Huawei productHuawei in-app purchasesA product mapping; purchase starts in Huawei's SDK.

Each guide includes order creation, client handoff, payment launch, result handling, and a path to refunds. Use only entries activated for your application. See release notes for the target contract and rollout status.

Follow a payment from start to finish​

  1. Create the order on your backend. Authenticate your customer, calculate the price, and save a business order. Create its payment session using the Payment API.
  2. Start payment in your app. Pass the returned invocation to the selected SDK, browser, or QR renderer. Keep the API key on your server.
  3. Confirm the result. On SDK return or app resume, ask your backend to retrieve the original platform order. Receive webhooks so this also works when the app is closed.
  4. Deliver once. When the authoritative order is paid and matches your purchase, record fulfillment in a durable transaction.
  5. Handle the rest of the lifecycle. Retrieve orders, close unpaid attempts, and request and track refunds through the same stored order mapping.

Huawei uses purchase evidence instead of creating a WeChat or Alipay payment session. Its dedicated guide covers that sequence.

What you build​

Your app owns the checkout screen, customer account, order history, and product delivery. Your backend owns pricing, authentication, payment requests, and fulfillment. NextAppMarket creates provider payment instructions, confirms financial results, and processes refund requests.

The app calls your backend. Your backend calls https://pay.appconnect.cn/payment/v1. You do not need the Business API to complete the standard app checkout below; it provides additional reporting, eligibility, and financial operations.

Consumer amounts use integer CNY fen: 10000 means CNY 100.00. These guides cover one-time payments, including Huawei consumables and non-consumables. They do not create recurring subscriptions.

Continue building​

Connect the app UI with Connect your app to checkout: Android and iOS HTTP helpers, browser Pay buttons, persistent order references, and the shared return/status page. Then follow the SDK or browser instructions in your selected payment-method guide.