Native Android Checkout
Integrate native payment components into your Android application for a high-performance, friction-less user experience.
In-App Native Processing
The Native Android API is optimized for mobile performance. It bypasses web redirection, allowing you to process cards and mobile money directly within your app's UI thread.
POST
/api/v1/b2b/payments/native-checkoutProcesses encrypted payment data from the Android SDK.
Payload for Android Apps
JSON
{
"amount": 10.00,
"currency": "USD",
"reference": "APP-REF-456",
"customer": {
"name": "Patrick Kamanda",
"email": "p.kamanda@email.com"
},
"cardDetails": {
"number": "4242XXXXXXXX4242",
"expiryMonth": "12",
"expiryYear": "26",
"cvv": "123"
}
}SDK Implementation Example
In your Android Studio project, you can use our helper methods to build the request.
Kotlin (Conceptual)
JavaScript
val checkoutRequest = CashPayRequest.Builder()
.amount(10.0)
.currency("USD")
.reference("APP-ORDER-1")
.cardData(encryptedCardBundle)
.build()
cashPayClient.processPayment(checkoutRequest) { response ->
if (response.isSuccessful) {
showSuccessUI()
}
}