The App-side payment module encapsulates the mainstream three-party payment platform SDK in the market, and provides JS API to call the mobile payment function uniformly.

Project Type API
uni-app uni.requestPayment(OBJECT)
5+ App/Wap2App plus.payment.*

如果服务端使用uniCloud,官方提供了uniPay云端统一支付服务,极大提升支付业务的开发效率,强烈推荐给开发者使用,参考示例:https://ext.dcloud.net.cn/plugin?id=1835

Tip: The parameter configuration of the payment module can only take effect after submitting the cloud package. Please use the [custom base] when running and debugging the real machine (http://ask.dcloud.net.cn/article/35115)

The basic process of using the payment function:

  • Apply to the third-party payment platform for activation, some platforms (such as WeChat payment) will obtain the appid after successful application
  • Generate payment orders on the server and obtain payment order data
  • Call API on the client to pay

支持的三方支付平台:

On This Page