Capabilities

Capabilities are sets of JavaScript APIs (JSAPIs) and OpenAPIs that can work together to help merchants and ISV implement specific functions. For example, the payment capability is accomplished by the my.tradePay JSAPI and OpenAPIs such as /{version}/payments/pay and /{version}/payments/notifyPayment, where the version is v1 or v2. 

Architecture overview

The calling process of JSAPIs and OpenAPIs is illustrated as below:

1592813389824-fe820e10-a1b3-468c-b01f-8654f4493aef.png

JSAPI

JSAPIs are available by default in the mini program container. You can call the existing JSAPIs from the mini program to use. When you call a JSAPI, it will interact between the wallet and the merchant or ISV backend server.

OpenAPI

ACL (Access Control List) OpenAPI standards are available. You can also use the standards of OpenAPIs and define the OpenAPIs. When you call an OpenAPI, it will interact between the wallet and the merchant or ISV backend server.

With a combination of JSAPIs and OpenAPIs, a set of capabilities can be defined. For example, you can see the following capabilities that are available by default:

In addition, you can define your own features that are centrally managed in the workspace of the Mini Program Platform. You can select the JSAPIs that are available by default. For more information, see Features.

More information

JSAPIs

Open APIs

Using Mini Program Platform

Features