🔥Інтеграція SDK
Цей розділ містить опис методів для взаємодії додатку партнеру з SDK для реалізації flow приймання платежів. Перелік версій, та змін відокремлено у розділ Історія версій SDK
Залежності
implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.3'
implementation 'com.squareup.okhttp3:okhttp-urlconnection:4.9.3'Ініціалізація
suspend fun Defin.init(
merchantId: String,
terminalId: String,
cashierId: String,
deviceId: String
) : DefinОплата
Методи оплати
Перелік продуктів
Приклад використання
Варіанти оплати
tap2phone
Перевірка статусу оплати
Приклад використання
Отримання чеку
Метод перевірки статусу та отримання квитанції (відокремлено від DefinOrder)
Перевірка статусу оплати
Отримати квитанцію
Last updated