SDK overview
The Alipay+ NFC SDK provides APIs for implementing Alipay+ NFC payment functionality in your applications. The following table lists the available functions.
Phase | Function | Description |
Initialization | Initialize the SDK and set overall configurations. | |
Switch the current operation context to the specified user account. Call this after user login or account switch. | ||
Disconnect the current user and clear sensitive context from memory. Call this after user logout. | ||
Deinitialize the SDK, release memory resources, and terminate background tasks. | ||
Proxy Settings | Set up a network proxy for communication between the SDK and the Alipay+ Server. | |
Set up a logger proxy for log output. | ||
Set up a proxy for event tracking. | ||
Set up a proxy for managing SDK configurations remotely. | ||
Static Token | Create a static token for the current user. | |
Retrieve information about the current user's static token. | ||
Retrieve static token verification information. | ||
Service Management | Pause all services and suspend all tokens, including those added to Apple Wallet. | |
Resume all services and tokens, including those added to Apple Wallet. | ||
Get the current service state for the user. | ||
Apple Wallet and Device Token | Create a device token for the current device or paired device and add the token to Apple Wallet. | |
Check whether the current device is capable of adding the token. | ||
Check whether the paired device, for example, an Apple Watch, is capable of adding the token. | ||
Present the device tokens already provisioned for the current user on the current device. | ||
Retrieve the device token of the current device. | ||
Retrieve the device token on the paired Apple Watch. | ||
In-App Verification |
| Activate a device token. Perform user authentication before calling this method. |
Wallet Extension | Report the status of your Wallet Extensions. | |
Report the list of device tokens available to add to the current device. | ||
Report the list of device tokens available to add to the current paired device. | ||
Create the data object required by Apple to add a card to ApplePay |
Note: If your project integrates this SDK using Objective-C code, you need to use the
IAPApplePayBridgeclass instead of theIAPApplePayclass, to ensure full compatibility.IAPApplePayBridgeis a bridging class specifically optimized for Objective-C code and is used in the same way asIAPApplePay.