Pembayaran
CLPaymentHandler class mempunyai fungsi untuk melakukan pembayaran dan menyiapkan prasyarat yang diperlukan. ICLPaymentService antarmuka protokol ini digunakan untuk menerima payment responses dari SDK. Berikut adalah alur Pembyaran (Gambar di bawah). Komunikasi antar classes harus menggunakan CLPayment.
Alur Pembayaran
3.4.1.1 CLPaymentHandler
CLPaymentHandler adalah sebuah class untuk menangani transaksi pembayaran, koneksi reader, dan Lokasi GPS (Tabel TransactionType, pada seksi 3.2.1.2 TransactionType). Sebelum melakukan pembayaran, pastikan hal tersebut dapat meng-update lokasi karena data lokasi diperlukan untuk transaksi pembayaran karena data lokasi diperlukan untuk transaksi pembayaran. Kemudian pastikan Reader Companion terhubung untuk pembayaran yang menggunakan kartu.
Methods | Description |
---|---|
doConnectionLocationProvider() | Fungsi ini memperbarui lokasi pembayaran dan harus dipanggil sebelum transaksi pembayaran. |
doStartPayment(ICLPaymentService) | Fungsi ini untuk memulai transaksi pembayaran. |
doProceedCashPayment(CLPayment payment) | Fungsi ini untuk memproses pembayaran tunai. |
doProceedInstallmentPayment(CLPayment payment); | Fungsi ini untuk memproses angsuran pembayaran kartu. |
doProceedPayment(CLPayment payment) | Fungsi ini untuk memproses pembayaran kartu dengan menggunakan lokasi yang ditetapkan ketika doStartPayment dilakukan. |
doProceedDebitTransferPayment(CLPayment payment); | Fungsi ini untuk memproses pembayaran transfer debit. |
doConfirmDebitTransferPayment(Boolean isCancelled); | Fungsi ini untuk mengkonfirmasi detail transaksi pembayaran transfer debit. |
doCheckReaderCompanion(); | Secara otomatis terhubung ke reader. |
doCheckPrinterCompanion() | Secara otomatis terhubung ke printer. |
doProceedSignature(String signature) | Fungsi ini berperan mengirimkan signature untuk signature pembayaran verifikasi. |
doStopUpdateLocation(); | Untuk berhenti meminta pembaruan lokasi. |
doUnregisterReceiver(); | Untuk memeriksa receiver yang tidak terdaftar. |
doCloseCompanionConnection(); | Fungsi ini untuk memutuskan hubungan antara reader dengan ponsel. |
doPrint(CLPaymentResponse paymentResponse); | Untuk mencetak tanda terima. |
doPrintFreeText(ArrayList<CLPrintObject>freeText; | Untuk mencetak tanda terima dengan teks gratis. |
doLogout() | Untuk keluar dari aplikasi. |
doCancelTransaction(); | Untuk membatalkan pembayaran transaksi. |
doProceedGoPayPayment(CLPaymentpaymen); | Untuk menghasilkan transaksi QRIS. |
doCheckGoPayStatus(CLGoPayQRResponse goPayQRResponse); | Untuk memeriksa status transaksi QRIS(Pending/Success.) |
doPrintGoPay(CLGoPayQRResponse goPayQRResponse); | Untuk mencetak transaksi tanda terima setelah pembayaran berhasil. |
doPrintQRGopay(Bitmap bitmap); | Untuk mencetak GoPay QRIS. |
doProceedKredivoPayment(CLPayment payment); | Untuk menghasilkan transaksi PayLater QR. |
doCheckKredivoStatus(CLKredivoResponse kredivoPayQRResponse); | Untuk memeriksa status transaksi PayLater QR(Pending/Success). |
doPrintKredivo(CLKredivoResponse kredivoPayQRResponse); | Untuk mencetak tanda terima setelah pembayaran berhasil. |
doPrintShopeePayReceipt(CLShopeePayQrResponse paymentResponse); | Untuk mencetak tanda terima setelah pembayaran berhasil. |
doProceedShopeePayQr(CLPayment payment); | Untuk menghasilkan transaksi ShopeePay QR |
doInquiryShopeePayQr(CLShopeePayQrResponse paymentResponse); | Untuk memeriksa status. |
doPrintQRContent(Bitmap qrValue); | Untuk mencetak ShopeePay QRIS |
3.4.1.2 ICLPaymentService
ICLPaymentService adalah protokol yang disediakan oleh CLPaymentHandler. Protokol ini mengembalikan sebuah response melalui delegate method ketika protokol tersebut berhasil atau gagal. Pastikan protokol tersebut ditempatkan pada class dan tetapkan delegasinya dari CLPaymentHandler sebelum mengirim datanya. ICLPaymentService interface memiliki methods/callbacks.
Methods | Desription |
---|---|
onReaderSuccess(CLReaderCompanion reader); | this callback is called when is reader found |
onReaderError(CLErrorResponse error); | this callback is called when is reader not found/error |
onPrinterSuccess(CLPrinterCompanion printercompanion); | callback when success printing receipt transaction |
onPrinterError(CLErrorResponse error); | callback when fail printing receipt transaction |
onInsertCreditCard(CLPaymentResponse paymentResponse); | callback when system accept payment with insert credit card |
onInsertOrSwipeDebitCard(CLPaymentResponse paymentresponse); | callback when system accept payment with insert/swipe debitcard |
onSwipeDebitCard(CLPaymentResponse paymentresponse); | callback when cashlez reader recognize a debit card has been swiped |
onRemoveCard(String removeCard) | callback when reader ask card to be removed |
onProvideSignatureRequest(CLPaymentResponse paymentresponse); | callback when signature has to be submitted |
onProvideSignatureError(CLErrorResponse error); | callback when signature is failed or error |
onSignatureTimeout(CLErrorResponse error); | callback when cashlez reader give a timeout during provide signature to server |
onPaymentTimeout(CLErrorResponse error); | callback when transaction request received request timeout, check last transaction to confirm transactionStatus |
onPaymentDebitTransferRequestConfirmation(CLTransferDetail detail); | callback is called to return transfer detail and ask confirmation |
onCashPaymentSuccess(CLPaymentResponse response) | Callback status with cash payment transaction is success |
onCashPaymentError(CLErrorResponse) | callback status with cash payment transaction is error/fail |
onPaymentError(CLErrorResponse error); | callback status when transaction status is error/fail |
onPaymentSuccess(CLPaymentResponse response); | callback status when transaction status is success |
onQROnReaderTimeout() | |
onUpdateHardwareProgress(double percentage); | callback status progress to update reader |
onGetHardwareInfoSuccess(Hashtable<String, String> data | callback to read info hardware is success |
onGetHardwareInfoError(CLErrorResponse error) | callback to read info hardware is fail/Error |
onUpdateHardwareFirmawareSuccess(String message) | callback to update hardware Firmware reader/printer is success |
onUpdateHardwareFirmawareError(CLErrorResponse error) | callback to update hardware Firmware reader/printer is error/fail |
onUpdateHardwareConfigurationSuccess(String message) | callback to updateHardwareConfiguration reader/printer is success |
onUpdateHardwareConfigurationError(CLErrorResponse error ); | callback to updateHardwareConfiguration reader/printer is error |
onGoPaySuccess(CLGoPayQRResponse qrResponse); | callback when generate QR Payment is success |
onGoPayError(CLErrorResponse errorResponse); | callback when generate QR Payment is fail or error |
onCheckGoPayStatusSuccess(CLGoPayQRResponse paymentResponse); | callback when check status transaction success |
onCheckGoPayStatusError(CLErrorResponse errorResponse); | callback when check status transaction is fail or error |
onKredivoSuccess(CLKredivoResponse response); | callback when generate QR payment is success |
onKredivoError(CLErrorResponse errorResponse); | callback when generate QR is fail or error |
onCheckKredivoStatusSuccess(CLKredivoResponse response); | callback when check status transaction success |
onCheckKredivoStatusError(CLErrorResponse errorResponse); | callback when check status transaction is fail or error |
onShopeePayQrSuccess(CLShopeePayQrResponse paymentResponse); | callback when generate QRIS payment is success |
onShopeePayQrError(CLErrorResponse errorResponse); | callback when generate QRIS is fail or error |
onShopeePayQrCheckStatusSuccess(CLShopeePayQrResponse paymentResponse); | callback when check status transaction success |
onShopeePayQrCheckStatusError(CLErrorResponse errorResponse); | callback when check status transaction is fail or error |
onShopeePayQrVoidSuccess(CLVoidResponse paymentResponse); | callback when void transaction is success |
onShopeePayQrVoidError(CLErrorResponse errorResponse); | callback when void transaction is error |
3.4.1.3 CLArtajasaVAHandler
CLArtajasaVAHandler adalah sebuah class untuk menangani transaksi pembayaran ARTAJASA VA, koneksi reader dan lokasi GPS, sebelum melakukan pembayaran, pastikan lokasinya ter-update karena data lokasi dibutuhkan untuk transaksi pembayaran. Lalu juga pastikan reader companion terhubung untuk transaksi pembayaran.
Method | Description |
---|---|
doStartArtajasaVAHandler(); | this function is used to start with VA |
doStopArtajasaVAHAndler(); | this function is used to stop VA activity |
doResumeArtajasaVAHandler(); | this function is used to resume VA Activity |
doProceedArtajasaVAPayment(CLPayment payment, LocationUpdater locationupdate, LocationModel locationModel) | this function is used to process transaction payment Artajasa VA with location as parameter to remove the need of invoking doStartVaHandler beforehand |
doProceedArtajasaVAPayment(CLPayment payment); | this function is used to process transaction payment Artajasa VA |
doCheckStatusVA(CLPaymentResponse artajasaVAResponse) | this function is used to check status transaction VA |
doPrintArtajasaVA(CLPaymentResponse artajasaVAResponse) | this function is used to print receipt after payment success |
3.4.1.4 ICLArtajasaVAService
ICLArtajasaVAService adalah protokol yang disediakan oleh CLArtajasaVAHandler. Protokol ini mengembalikan sebuah response melalui delegate method ketika protokol tersebut berhasil atau gagal. Pastikan protokol tersebut ditempatkan pada class dan tetapkan delegasinya dari CLArtajasaVAHandler sebelum mengirimkan datanya. ICLArtajasaService interface memiliki methods/callbacks.
Methods | Description |
---|---|
onArtajasaGenerateVASuccess(CLPaymentResponse paymentResponse) | callback when generate vanumber is succes |
onArtajasaGenerateVAError(CLErrorResponse errorResponse) | callback when generate vanumber is fail/error |
onArtajasaCheckStatusSuccess(CLPaymentResponse paymentResponse) | callback when status transaction va is success |
onArtajasaCheckStatusError(CLErrorResponse errorResponse) | callback when status transaction va is error/fail |
onPrinterSuccess(CLPrinterCompanion printerCompanion) | callback printing receipt is success |
onPrinterError(CLErrorResponse error) | callback printing receipt is error/fail |
3.4.1.5 CLBcaVaHandler
CLBcaVaHandler adalah sebuah class untuk menangani transaksi pembayaran BCA VA, koneksi reader dan lokasi GPS, sebelum melakukan pembayaran, pastikan lokasinya ter-update karena data lokasi dibutuhkan untuk transaksi pembayaran. Lalu juga pastikan reader companion terhubung untuk transaksi pembayaran.
Methods | Description |
---|---|
doStartBcaVaHandler(); | this function is used to start with VA |
doStopBcaVaHandler(); | this function is used to stop VA activity |
doResumeBcaVaHandler(); | this function is used to resume VA Activity |
doBcaVaCheckStatus(CLPaymentResponse paymentResponse) | this function is used to check status transaction VA |
doProceedBcaVaPayment(CLPayment payment); | this function is used to process transaction payment BCA VA |
doPrintBcaVaReceipt(CLPaymentResponse paymentResponse) | this function is used to print receipt after payment success |
3.4.1.6 ICLBcaVaService
ICLBcaVaService adalah protokol yang disediakan oleh CLBcaVaHandler. Protokol ini mengembalikan sebuah response melalui delegate method ketika protokol tersebut berhasil atau gagal. Pastikan protokol tersebut ditempatkan pada class dan tetapkan delegasinya dari CLBcaVaHandler sebelum mengirim datanya. ICLBcaVaService interface memiliki methods/callbacks.
Methods | Description |
---|---|
onBcaVaGenerateSuccess(CLPaymentResponse paymentResponse) | callback when generate vanumber is succes |
onBcaVaGenerateError(CLErrorResponse errorResponse) | callback when generate vanumber is fail/error |
onBcaVaCheckStatusSuccess(CLPaymentResponse paymentResponse) | callback when status transaction va is success |
onBcaVaCheckStatusError(CLErrorResponse errorResponse) | callback when status transaction va is error/fail |
onPrinterSuccess(CLPrinterCompanion printerCompanion) | callback printing receipt is success |
onPrinterError(CLErrorResponse error) | callback printing receipt is error/fail |
3.4.1.7 CLPermataVAHandler
CLPermataVAHandler adalah sebuah class untuk menangani transaksi pembayaran Permata VA, koneksi reader dan lokasi GPS, sebelum melakukan pembayaran, pastikan lokasinya ter-update karena data lokasi dibutuhkan untuk transaksi pembayaran. Lalu juga pastikan reader companion terhubung untuk transaksi pembayaran.
Method | Description |
---|---|
doStartPermataVAHandler(); | this function is used to start with VA |
doStopPermataVAHandler(); | this function is used to stop VA activity |
doResumePermataVAHandler(); | this function is used to resume VA Activity |
doPermataCheckStatusVA(CLPaymentResponse permataVAResponse) | this function is used to check status transaction VA |
doProceedPermataVAPayment(CLPayment payment); | this function is used to process transaction payment Permata VA |
doPrintPermataVaReceipt(CLPaymentResponse permataVAResponse) | this function is used to print receipt after payment success |
3.4.1.8 ICLPermataVAService
ICLPermataVAService adalah protokol yang disediakan oleh CLPermataVAHandler. Protokol ini mengembalikan sebuah response melalui delegate method ketika protokol tersebut berhasil atau gagal. Pastikan protokol tersebut ditempatkan pada class dan tetapkan delegasinya dari CLPermataVAHandler sebelum mengirim datanya. ICLPermataVAService interface memiliki methods/callbacks.
Method | Description |
---|---|
onPermataGenerateVASuccess(CLPaymentResponse paymentResponse) | callback when generate vanumber is succes |
onPermataGenerateVAError(CLErrorResponse errorResponse) | callback when generate vanumber is fail/error |
onPermataCheckStatusSuccess(CLPaymentResponse paymentResponse) | callback when status transaction va is success |
onPermataCheckStatusError(CLErrorResponse errorResponse) | callback when status transaction va is error/fail |
onPrinterSuccess(CLPrinterCompanion printerCompanion) | callback printing receipt is success |
onPrinterError(CLErrorResponse error) | callback printing receipt is error/fail |
3.4.1.9 CLGoPayQRHandler
CLGoPayQRHandler adalah sebuah class untuk menangani transaksi pembayaran GoPay, koneksi reader dan lokasi GPS, sebelum melakukan pembayaran, pastikan lokasinya ter-update karena data lokasi dibutuhkan untuk transaksi pembayaran. Lalu juga pastikan reader companion terhubung untuk transaksi pembayaran.
Method | Description |
---|---|
doStartGoPayHandler() | this function is used to start with QRISPayment |
doResumeGoPayHandler() | this function is used to resume activity QRISPayment |
doStopGoPayHandler() | this function is used to stop activity QRISPayment |
doProceedGoPayPayment(CLPayment payment, LocationUpdater locationUpdate, LocationModel locationmodel) | this function is used to process transaction payment QRISPayment (Gopay) with location as parameter to remove the need of invoking doStartGoPayHandler beforehand |
doCheckGoPayQRStatus(CLPaymentResponse paymentresponse) | this function is used to check status transaction payment QRISPayment (Gopay) |
doProceedGoPayPayment(CLPayment payment) | this function is used to process transaction payment QRISPayment (Gopay) |
doPrintQRContent(Bitmap qrCode) | this function to process print qrcode |
doPrintGoPay(CLPaymentResponse paymentresponse) | this function to process print receipt after status transaction Approved (100) |
3.4.1.10 ICLGoPayQRService
ICLGoPayQRService adalah protokol yang disediakan oleh CLGoPayQRHandler. Protokol ini mengembalikan sebuah response melalui delegate method ketika protokol tersebut berhasil atau gagal. Pastikan protokol tersebut ditempatkan pada class dan tetapkan delegasinya dari CLGoPayQRHandler sebelum mengirim datanya. ICLGoPayQRService interface memiliki methods/callbacks.
Method | Description |
---|---|
onGoPayQRSuccess(CLPaymentResponse qrResponse) | Callback when generate qrpayment is success |
onGoPayQRError(CLErrorResponse errorResponse) | callback when generate qrpayment is fail/Error |
onCheckGoPayStatusSuccess(CLPaymentResponse qrResponse) | callback when status transaction is Success |
onCheckGoPayStatusError(CLErrorResponse errorResponse) | callback when status transaction is error |
onPrinterSuccess(CLPrinterCompanion printerCompanion) | callback printing receipt is success |
onPrinterError(CLErrorResponse error) | callback printing receipt is error/fail |
3.4.1.11 CLShopeePayQrHandler
CLShopeePayQrHandler adalah sebuah class untuk menangani transaksi pembayaran ShopeePay, koneksi reader dan lokasi GPS, sebelum melakukan pembayaran, pastikan lokasinya ter-update karena data lokasi dibutuhkan untuk transaksi pembayaran. Lalu juga pastikan reader companion terhubung untuk transaksi pembayaran.
Method | Description |
---|---|
doStartHandlerShopeepay() | this function is used to start with QRISPayment |
doResumeHandlerShopeepay() | this function is used to resume activity QRISPayment |
doStopHandlerShopeepay() | this function is used to stop activity QRISPayment |
doProceedShopeePayQr(CLPayment payment, LocationUpdater locationUpdate, LocationModel locationmodel) | this function is used to process transaction payment QRISPayment (ShopeePay) with location as parameter to remove the need of invoking doStartGoPayHandler beforehand |
doInquiryShopeePayQr(CLPaymentResponse paymentresponse) | this function is used to check status transaction payment QRISPayment (ShopeePay) |
doProceedShopeePayQr(CLPayment payment) | this function is used to process transaction payment QRISPayment (Gopay) |
doPrintQRContent(Bitmap qrCode) | this function to process print qrcode |
doPrintShopeePayReceipt(CLPaymentResponse paymentresponse) | this function to process print receipt after status transaction Approved (100) |
doVoidShopeePayQr(String username, String password, CLPaymentResponse paymentResponse) | this function is used to process void payment |
3.4.1.12 ICLShopeePayQrService
ICLShopeePayQrService adalah protokol yang disediakan oleh CLShopeePayQrHandler. Protokol ini mengembalikan sebuah response melalui delegate method ketika protokol tersebut berhasil atau gagal. Pastikan protokol tersebut ditempatkan pada class dan tetapkan delegasinya dari CLShopeePayQrHandler sebelum mengirim datanya. ICLShopeePayQrService interface memiliki methods/callbacks.
Method | Description |
---|---|
onShopeePayQrSuccess(CLPaymentResponse paymentResponse) | Callback when generate qrpayment is success |
onShopeePayQrError(CLErrorResponse errorResponse) | callback when generate qrpayment is fail/Error |
onShopeePayQrCheckStatusSuccess(CLPayment Response paymentResponse) | callback when status transaction is Success |
onShopeePayQrCheckStatusError(CLErrorResponse errorResponse) | callback when status transaction is error |
onPrinterSuccess(CLPrinterCompanion printerCompanion) | callback printing receipt is success |
`onPrinterError(CLErrorResponse error) | `callback printing receipt is error/fail |
onShopeePayQrVoidSuccess(CLVoidResponse paymentResponse) | callback when status void transaction is success |
onShopeePayQrVoidError(CLErrorResponse errorResponse) | callback when status void transaction is error |
3.4.1.13 CLTcashQRHandler
CLTcashQRHandler adalah sebuah class untuk menangani transaksi pembayaran Link AJA, koneksi reader dan lokasi GPS, sebelum melakukan pembayaran, pastikan lokasinya ter-update karena data lokasi dibutuhkan untuk transaksi pembayaran. Lalu juga pastikan reader companion terhubung untuk transaksi pembayaran.
Method | Description |
---|---|
doStartTCashHandler() | this function is used to start with QRISPayment |
doResumeTCashHandler() | this function is used to resume activity QRISPayment |
doStopTCashHandler() | this function is used to stop activity QRISPayment |
doProceedTCashQRPayment(CLPayment payment, LocationUpdater locationUpdate, LocationModel locationmodel) | this function is used to process transaction payment QRISPayment (Link Aja) with location as parameter to remove the need of invokingdoStartGoPayHandler beforehand |
doCheckTCashQRStatus(CLTCashQRResponse qrResponse) | this function is used to check status transaction payment QRISPayment (Link Aja) |
doProceedTCashQRPayment(CLPayment payment) | this function is used to process transaction payment QRISPayment (Link Aja) |
doPrintQRContent(Bitmap qrCode) | this function to process print qrcode |
doPrintTcashQR(CLTCashQRResponse responseReceipt) | this function to process print receipt after status transaction Approved (100) |
doVoidTcashQRPayment(String username, String password, CLPaymentResponse paymentResponse) | this function is used to process void payment |
3.4.1.14 ICLTCashQRService
ICLTCashQRService adalah protokol yang disediakan oleh CLTCashQRHandler. Protokol ini mengembalikan sebuah response melalui delegate method ketika protokol tersebut berhasil atau gagal. Pastikan protokol tersebut ditempatkan pada class dan tetapkan delegasinya dari CLTCashQRHandler sebelum mengirim datanya. ICLTCashQRService interface memiliki methods/callbacks.
Method | Description |
---|---|
onTCashQRSuccess(CLTCashQRResponse qrResponse) | Callback when generate qrpayment is success |
onTCashQRError(CLErrorResponse errorResponse) | callback when generate qrpayment is fail/Error |
onCheckTCashQRStatusSuccess(CLTCashQRResponse paymentResponse) | callback when status transaction is Success |
onCheckTCashQRStatusError(CLErrorResponse errorResponse) | callback when status transaction is error |
onPrinterSuccess(CLPrinterCompanion printerCompanion) | callback printing receipt is success |
onPrinterError(CLErrorResponse error) | callback printing receipt is error/fail |
onVoidTcashQRSuccess(CLVoidResponse paymentResponse) | callback when status void transaction is success |
onVoidTcashQRError(CLErrorResponse errorResponse) | callback when status void transaction is error |
3.4.1.15 CLVospayHandler
CLVospayHandler adalah sebuah class untuk menangani transaksi pembayaran Vospay, koneksi reader dan lokasi GPS, sebelum melakukan pembayaran, pastikan lokasinya ter-update karena data lokasi dibutuhkan untuk transaksi pembayaran. Lalu juga pastikan reader companion terhubung untuk transaksi pembayaran.
Method | Description |
---|---|
doStartVospayHandler() | this function is used to start with Vospay |
doResumeVospayHandler() | this function is used to resume activity Vospay |
doStopVospayHandler() | this function is used to stop activity Vospay |
doProceedVospayPayment() | this function is used to process transaction payment Vospay with location as parameter to remove the need of invoking doStartVospayHandler beforehand |
doInquiryVospayPayment | this function is used to check status transaction payment Vospay |
doVoidedVospayPayment() | this function is invoked to void payment Vospay |
doPrintReceiptVospay() | this function to process print receipt after status transaction Approved (100) |
3.4.1.16 ICLVospayService
ICLVospayService adalah protokol yang disediakan oleh CLVospayHandler. Protokol ini mengembalikan sebuah response melalui delegate methode ketika protokol tersebut berhasil atau gagal. Pastikan protokol tersebut ditempatkan pada class dan tetapkan delegasinya dari CLVospayHandler sebelum mengirim datanya. ICLVospayService interface memiliki methods/callbacks (Error! References source not found).
Methods | Description |
---|---|
onVospayPaymentSuccess(CLPaymentResponse response) | Callback when push vospay payment is success |
onVospayPaymentError(CLErrorResponse error) | callback when push vospay is fail/error |
onVospayInquirySuccess(CLPaymentResponse response) | callback when status transaction is Success |
onVospayInquiryError(CLErrorResponse error) | callback when status transaction is error |
onVospayVoidedPaymentSuccess(CLVoidResponse response) | callback when status void transaction is success |
onVospayVoidedPaymentError(CLErrorResponse error) | callback when status void transaction is error/fail |
onPrintingSuccess(CLPrinterCompanion printercompanion) | callback printing receipt is success |
onPrintingError(CLErrorResponse error) | callback printing receipt is error/fail |
3.4.1.17 CLOvoHandler
CLOvoHandler adalah sebuah class untuk menangani transaksi pembayaran OVO, koneksi reader dan lokasi GPS, sebelum melakukan pembayaran, pastikan lokasinya ter-update karena data lokasi dibutuhkan untuk transaksi pembayaran. Lalu juga pastikan reader companion terhubung untuk transaksi pembayaran.
Method | Description |
---|---|
doStartOvoHandler() | this function is used to start with Ovo |
doResumeOvoHandler() | this function is used to resume activity OVO |
doStopOvoHandler() | this function is used to stop activity OVO |
doOvoPayment(CLPayment payment, LocationUpdater locationUpdater, LocationModel locationModel) | this function is used to process transaction payment OVO with location as parameter to remove the need of invoking doStartPushToPayHandler beforehand |
doOvoPayment(CLPayment payment) | this function is used to process transaction payment OVO |
doOvoInquiry | this function is used to check status transaction payment OVO |
doOvoVoidPayment | this function is invoked to void payment OVO |
doPrintOvo | this function to process print receipt after status transaction Approved (100) |
3.4.1.18 ICLOvoService
ICLOvoService adalah protokol yang disediakan oleh CLOvoHandler. Protokol ini mengembalikan sebuah response melalui delegate methode ketika protokol tersebut berhasil atau gagal. Pastikan protokol tersebut ditempatkan pada class dan tetapkan delegasinya dari CLOvoHandler sebelum mengirim datanya. ICLOvoService interface memiliki methods/callbacks.
Method | Description |
---|---|
onOvoPaymentSuccess(CLPaymentResponse response) | Callback when pustopay OVO is success |
onOvoPaymentError(CLErrorResponse error) | callback when pustopay OVO is fail/Error |
onOvoInquirySuccess(CLPaymentResponse response) | callback when status transaction is Success |
onOvoInquiryError(CLErrorResponse error) | callback when status transaction is error |
onOvoVoidPaymentSuccess(CLVoidResponse response) | callback when status void transaction is success |
onOvoVoidPaymentError(CLErrorResponse error) | callback when status void transaction is error/fail |
onPrintingSuccess(CLPrinterCompanion printercompanion) | callback printing receipt is success |
onPrintingError(CLErrorResponse error) | callback printing receipt is error/fail |
3.4.1.19 CLKredivoHandler
CLKredivoHandler adalah sebuah class untuk menangani transaksi pembayaran Kredivo, koneksi reader dan lokasi GPS, sebelum melakukan pembayaran, pastikan lokasinya ter-update karena data lokasi dibutuhkan untuk transaksi pembayaran. Lalu juga pastikan reader companion terhubung untuk transaksi pembayaran.
Method | Description |
---|---|
doStartKredivoHandler() | this function is used to start with Kredivo |
doResumeKredivoHandler() | this function is used to resume activity Kredivo |
doStopKredivoHandler() | this function is used to stop activity Kredivo |
doProceedKredivoPayment(CL Payment payment, LocationUpdater locationUpdater, LocationModel locationModel) | this function is used to process transaction payment Kredivo with location as parameter to remove the need of invoking doStartVospayHandler beforehand |
doCheckKredivoStatus | this function is used to check status transaction payment Kredivo |
doProceedKredivoPayment() | this function is used to process transaction payment Kredivo |
doPrintKredivo() | this function to process print receipt after status transaction Approved (100) |
doPrintKredivoQR | this function to print QRCode |
3.4.1.20 ICLKredivoService
ICLKredivoService adalah protokol yang disediakan oleh CLKredivoHandler. Protokol ini mengembalikan sebuah response melalui delegate methode ketika protokol tersebut berhasil atau gagal. Pastikan protokol tersebut ditempatkan pada class dan tetapkan delegasinya dari CLKredivoHandler sebelum mengirim datanya. ICLKredivoService interface memiliki methods/callbacks.
Method | Description |
---|---|
onKredivoSuccess(CLPaymentResponse response) | Callback when pustopay Kredivo is success |
onKredivoError(CLErrorResponse error) | callback when pustopay Kredivo is fail/Error |
onCheckKredivoStatusSuccess(CLPaymentResponse response) | callback when status transaction is Success |
onCheckKredivoStatusError(CLErrorResponse error) | callback when status transaction is error |
onPrintingSuccess(CLPrinterCompanion printercompanion) | callback printing receipt is success |
onPrintingError(CLErrorResponse errorResponse) | callback printing receipt is error/fail |