Implementation with Android App SDK
✅ Import the SDK aar into your Android project
In Android Studio, choose File→Project Structure→Dependencies • In “Modules”panel, choose “+”
• Choose “import .JAR/.AAR Package”
• Browse to path of the file “sdk-alipay_release.aar”, select it by click “OK”, then“finish”
• The package will be imported to the project as dependency of your app in your Android project
✅ Implement the SDK in your Android project
• In you payment activity, import com.ottpay.sdk.*
• implement the payment SDK as following the code sample
☑️ Replace the server_url, merchant_id, operator_id with the values from OTT PAY. Create an instance of ConsumeStarter, set the OnCompleteListener, and then invoke the consumeImp method to activate the payment page in your mobile’s Alipay app.
👉 Here is the sdk for android app for download
Last updated