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:
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:
- User information capability
- Payment capability
- For all OpenAPIs that support various capabilities, see OpenAPIs for Merchants.
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.