Alipay+ DocsAlipay+ Docs

setPassFreeLimitAmount

Call the setPassFreeLimitAmount API to set the pass free limit amount, which is the amountLevel parameter in the request parameter of the init API.

Method signature

copy
void setPassFreeLimitAmount(@NotNull String amountLevelKey, @Nullable ACResultCallback<Boolean> callback);

Request parameters

Item

Type

Description

Required

amountLevelKey

String

The key value for the pass free limit amount.

Note: The key value passed by the MPP must be consistent with the key preset by the server, otherwise the request to the server will fail.

Required

callback

ACResultCallback<Boolean>

The callback for updating the pass free limit amount.

Valid values are:

  • true: Successfully updated the pass free limit amount.
  • false: Failed to update the pass free limit amount, and the pass free limit amount remains the same as before the user's change.

Optional

Response parameters

N/A

Sample

copy
ACTapManager.getInstance(this.getApplication()).setPassFreeLimitAmount(amountLevelKey, callback)