SDK overview
The Alipay+ NFC SDK provides APIs for implementing Alipay+ NFC payment functionality in your applications. The following table lists the available functions.
Category | Function | Use |
Initialization | Initialize the client SDK. | |
Connect to the SDK secure wallet. | ||
Disconnect from the SDK secure wallet. | ||
| Deinitialize the Alipay+ NFC SDK. | ||
Card activation | Activate the card. | |
Activate the Host Card Emulation (HCE) payment function in silent mode. | ||
Cancel the card activation process. | ||
Determine if the payment function is available. | ||
ACTapManager.onNotificationDataReceived(String notificationData)
| Receive notifications related to card token activation. | |
Replenish transaction Credentials. | ||
| Obtain the number of available credentials. | ||
ApplyCardActivity.apply(activity: Activity, requestCode: Int, apduServiceName: String) | Activate the card application activity. | |
Card management | Lock the card through the MPP app. | |
Unlock the card through the MPP app. | ||
| Delete the NFC card activation token. | ||
Transaction | Authentication. | |
| Set the pass free limit amount. | ||
Set custom data that is to be passed through to the card issuer. | ||
SPI | Proxy network requests via App. | |
Authentication in transaction. | ||
Remote configuration delivery. | ||
Print out logs. | ||
Obtain fingerprint from wallet device. | ||
| Detect the SDK's execution status. | ||
| Implement and manage your own thread pool. | ||
| Encrypt or decrypt sensitive data. | ||
| Store and manage key-value pairs. | ||
Listener | Monitor transaction process and provide callback. | |
Monitor wallet status change and provide callback. | ||
ACTapManager.setActivateStatusListener(ActivateStatusListener) | Monitor the status of the activatePayment API and provide callback. | |
ACTapManager.getInstance(application).removeActivateStatusListener(ActivateStatusListener) | Remove the activation status listener when the activity gets destroyed. | |
ACTapManager.getInstance(application).removeTokenStatusListener(TokenStatusListener) | Remove the token status listener when the activity gets destroyed. | |
Register extension function. | ||
NFC settings | ApplyCardActivity.setting(activity: Activity, apduServiceName: String) | Enable the NFC payment function. |
NFCUtils.isNfcPaySettingsCompleted(activity: Activity, apduServiceName: String) | Check if NFC payment is enabled. | |
Callback | The general callback API. |