APO's independent risk control solution enables merchants to implement the risk control function of card payment. APO advances the risk control process based on obtaining risk control recommendations, and the entire process does not require the merchant to participate in the decision-making process. The merchant only needs to call the interface to report to Ant Group after the occurrence of the transaction risk.
APO's independent risk control solution can advise you on whether to authorize a transaction before authorization and advance the transaction based on the risk control recommendations obtained.
Integration flow
The integration process of independent risk control solutions is shown in the following figure:
Figure 1. SDK integration flow of independent risk control
Integration consideration
When a buyer submits a payment request, you need to integrate the card payment capability via SDK or API. The integration steps for this solution are the same as for the Card payments. If you integrate independent risk control via SDK, you only need to complete the following actions:
1. Introduce an independent risk control SDK package
According to the terminal type, introduce the independent risk control SDK package through the following operations:
Web/WAP
Android
iOS
No need to integrate an independent risk control SDK package in the Web/WAP type
Download Resource Package: Enter Antom Dashboard, select Cashier Component for Android in Resources > DownloadDetail, and click View the download address of this package to download.Note: You need to agree to the SDK download agreement when you download for the first time.
Place the extracted .aar build file into the project libs file.
Declare a reference to the .aar build file in the build.gradle file of the current project application.
Add dependency information to the build.gradle file.
copy
dependencies {
// Configure the SDK aar package, noting that you need to replace x.x.x with the specific version number of the package you downloaded.
implementation(name: 'ams-component-sdk-release-x.x.x', ext: 'aar')
// Add the Card Payment Protection SDK aar package, noting that you need to replace x.x.x with the specific version number of the package you downloaded.
implementation (name: 'apsecurity-oversea-x.x.x-sdk', ext: 'aar')
implementation (name: 'apsecuritysdk-adapter-oversea-x.x.x-sdk', ext: 'aar')
implementation 'com.alibaba:fastjson:1.1.70.android'
}
Download Resource Package: Enter Antom Dashboard, select Cashier Component for iOS in Resources > Download Detail, and click View the download address of this package to download. Note: You need to agree to the SDK download agreement when you download for the first time.
Add AMSComponent.framework, APPSecuritySDKAdapter.framework, APPSecuritySDKCore.framework, AlipayWebView.framework framework to the project, and add AlipayWebView.framework/IWebContainer.bundle and AMSComponent.framework/AMSComponent.bundle
Add -ObjC in Build Settings > Linking > Other Linker Flags
QUOTELINKERARGUMENTS
ALIPAYPLUSCLIENT
SIGNING&CAPABILITIES
OTHERLINKERFLAGS
$(INHERITED)
BUILDSETTINGS
RESOURCETAGS
BUILDRULES
CUSTOMIZED
EXAMPLE
SETTING
OMBINE
RESOLVED
OTHERLINK
BUILDPHASES
LINKING
LEVELS
-OBJC
-OBIC
GENERAL
OBJC
BASIC
ESC
INFO
2. Notify a risk
If a transaction is suspected of fraud or card theft or chargeback occurs, you need to call the reportRisk API to notify Ant Group of the risk. Please refer to Notify a risk for more details.