Skip to main content

3.4.1 Payments

The CLPaymentHandler class has the functions to do payment and setting up the necessary preconditions. This ICLPaymentService protocol interface is used to accept payment responses from the SDK. Below is Payments Flow (Figure Below). Communication between classes must use the CLPayment class.

Payments Flow
image 1

3.4.1.1 ICLPaymentHandler

ICLPaymentHandler is a class for handling payment transactions, reader connection, and GPS location (Table TransactionType). Before doing payment, make sure it updates the location because location data is needed for payment transactions. Then make sure the reader companion is connected for payment transactions using a card.

ICLPaymentHandler
MethodsDescription
doConnectionLocationProvider()This function updates payment locations and must be called before payment transaction.
doStartPayment(ICLPaymentService)This function to start payment transaction
doProceedCashPayment(CLPayment payment)This function to process Cash payment
doProceedInstallmentPayment(CLPayment payment);This function to process Card payment Installment.
doProceedPayment(CLPayment payment)This function to process Card payment by using location set during doStartPayment
doProceedDebitTransferPayment(CLPayment payment);This function to process Debit transfer payment
doConfirmDebitTransferPayment(Boolean isCancelled);This function to confirm Debit Transfer payment transaction Detail
doCheckReaderCompanion();Automatically connect to reader
doCheckPrinterCompanion()Automatically connect to printer
doProceedSignature(String signature)This function is to send signature for signature verification payment
doStopUpdateLocation();To stop requesting location updates
doUnregisterReceiver();To check unregister receiver
doCloseCompanionConnection();This function to disconnect between reader with mobile phone
doPrint(CLPaymentResponse paymentResponse);To print receipt
doPrintFreeText(ArrayList<CLPrintObject>freeText;To print receipt with free text
doLogout()To exit from app
doCancelTransaction();To Cancel Transaction Payment
doProceedGoPayPayment(CLPaymentpaymen);To generate Transaction QRIS
doCheckGoPayStatus(CLGoPayQRResponse goPayQRResponse);To check Status Transaction QRIS(Pending/Success)
doPrintGoPay(CLGoPayQRResponse goPayQRResponse);To Print Receipt Transaction after payment success
doPrintQRGopay(Bitmap bitmap);To Print QRIS Gopay
doProceedKredivoPayment(CLPayment payment);To generate Transaction QR Paylater
doCheckKredivoStatus(CLKredivoResponse kredivoPayQRResponse);To check Status Transaction QR Paylater(Pending/Success)
doPrintKredivo(CLKredivoResponse kredivoPayQRResponse);To Print Receipt after Payment Success
doPrintShopeePayReceipt(CLShopeePayQrResponse paymentResponse);To Print Receipt after Payment Success
doProceedShopeePayQr(CLPayment payment);To generate Transaction Shopee Pay QRIS
doInquiryShopeePayQr(CLShopeePayQrResponse paymentResponse);To check status
doPrintQRContent(Bitmap qrValue);To Print QRIS Shopee Pay

3.4.1.2 ICLPaymentService

ICLPaymentService is a protocol provided by CLPaymentHandler. it will return a response through the delegate method whenever it's success or failed. make sure that protocol is placed in class and set a delegate from CLPaymentHandler before sending the data. the ICLPaymentService interface has methods/callbacks.


ICLPaymentService
MethodsDesription
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> datacallback 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
doPrintNobuQRReceipt(CLPaymentResponse paymentResponse);To print Receipt Nobu QRIS after payment successed
doPrintNobuQRCode(Bitmap bitmap);To Print QRIS Nobu
doProceedNobuQRPayment(CLPayment payment);To Generate Reception Nobu QRIS
doInquiryNobuQRPayment(CLPaymentResponse paymentResponse);To Check Status QRIS Nobu

3.4.1.3 ICLArtajasaVAHandler

CLArtajasaVAHandler is a class for handling payment transactions ARTAJASA VA, reader connection and GPS location, before doing payment, make sure it updates the location because location data is needed for payment transactions. then make sure the reader companion is connected for payment transactions.


ICLArtajasaHandler
MethodDescription
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 is a protocol provided by CLArtajasaVAHandler. it will return a response through the delegate method whenever it's success or error. make sure that protocol is placed in class and set delegate from CLArtajasaVAHandler before sending the data. The ICLArtajasaService interface has methods/callbacks.


ICLArtajasaVAService
MethodsDescription
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 ICLBcaVaHandler

ICLBcaVaHandler is a class for handling payment transactions BCA VA, reader connection and GPS location, before doing payment, make sure it updates the location because location data is needed for payment transactions. then make sure the reader companion is connected for payment transactions.


ICLBcaVaHandler
MethodsDescription
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 is a protocol provided by ICLBcaVaHandler. it will return a response through the delegate method whenever it's success or error. make sure that protocol is placed in class and set delegate from ICLBcaVaHandler before sending the data. The ICLBcaVaService interface has methods/callbacks.


ICLVaService
MethodsDescription
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 ICLPermataVAHandler

ICLPermataVAHandler is a class for handling payment transactions Permata VA, reader connection and GPS location, before doing payment, make sure it updates the location because location data is needed for payment transactions. then make sure the reader companion is connected for payment transactions.


ICLVaHandler
MethodDescription
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 is a protocol provided by ICLPermataVAHandler. it will return a response through the delegate method whenever it's success or error. make sure that protocol is placed in class and set delegate from ICLPermataVAHandler before sending the data. The ICLPermataVAService interface has methods/callbacks.


ICLVaService
MethodDescription
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 ICLGoPayQRHandler

ICLGoPayQRHandler is a class for handling payment transaction GOPAY reader connection and GPS location. Before doing payment, make sure it updates the location because location data is needed for payment transactions. Then make sure the reader companion is connected for payment transactions.


ICLGoPayQRHandler
MethodDescription
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 is a protocol provided by ICLGoPayQRHandler. it will return a response through the delegate method whenever it's success or error. make sure that protocol is placed in class and set delegate from ICLGoPayQRHandler before sending the data. The ICLGoPayQRService interface has methods/callbacks.


ICLGoPayQRHandler
MethodDescription
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 ICLShopeePayQrHandler

ICLShopeePayQrHandler is a class for handling payment transaction ShopeePay reader connection and GPS location. Before doing payment, make sure it updates the location because location data is needed for payment transactions. Then make sure the reader companion is connected for payment transactions.


ICLShopeePayQrHandler
MethodDescription
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 is a protocol provided by ICLShopeePayQrHandler. it will return a response through the delegate method whenever it's success or error. make sure that protocol is placed in class and set delegate from ICLShopeePayQrHandler before sending the data. The ICLShopeePayQrService interface has methods/callbacks.


ICLShopeePayQrService
MethodDescription
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 ICLTcashQRHandler

ICLTcashQRHandler is a class for handling payment transaction Link AJA reader connection and GPS location. Before doing payment, make sure it updates the location because location data is needed for payment transactions. Then make sure the reader companion is connected for payment transactions.


ICLTcashQRHandler
MethodDescription
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 is a protocol provided by ICLTCashQRHandler. it will return a response through the delegate method whenever it's success or error. make sure that protocol is placed in class and set delegate from ICLTCashQRHandler before sending the data. The ICLTCashQRService interface has methods/callbacks.


ICLTCashQRService
MethodDescription
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 ICLVospayHandler

ICLVospayHandler is a class for handling payment transaction Vospay, reader connection and GPS location. Before doing payment, make sure it updates the location because location data is needed for payment transactions. then make sure the reader companion is connected for payment transactions.


ICLVospayHandler
MethodDescription
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
doInquiryVospayPaymentthis 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 is protocol provided from ICLVospayHandler. it will return response through delegate method whenever it's success or error. make sure that protocol is placed in class and set delegate from ICLVospayHandler before send the data. the ICLVospayService interfaces has methods/callbacks (Error! References source not found).

ICLVospayService
MethodsDescription
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 ICLOvoHandler

ICLOvoHandler is a class for handling payment transaction OVO, reader connection and GPS location. Before doing payment, make sure it updates the location because location data is needed for payment transactions. then make sure the reader companion is connected for payment transactions.


ICLOvoHandler
MethodDescription
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
doOvoInquirythis function is used to check status transaction payment OVO
doOvoVoidPaymentthis function is invoked to void payment OVO
doPrintOvothis function to process print receipt after status transaction Approved (100)

3.4.1.18 ICLOvoService

ICLOvoService is a protocol provided by ICLOvoHandler. it will return a response through the delegate method whenever it's success or error. make sure that protocol is placed in class and set a delegate from ICLOvoHandler before sending the data. The ICLOvoService interface has methods/callbacks.


ICLOvoService
MethodDescription
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 ICLCashlezLinkService


ICLCashlezLinkService
MethodDescription
onCzLinkGenerateUrlSuccess(CLPaymentResponse paymentResponse)Callback when the payment link successfully generated
onCzLinkGenerateUrlError(CLErrorResponse errorResponse)Callback when the payment link failed to generate
onPrintingSuccess(CLPrinterCompanion printerCompanion)callback printing receipt is success
onPrintingError(CLErrorResponse errorResponse)callback printing receipt is error/fail

3.4.1.20 ICLKredivoHandler

ICLKredivoHandler is a class for handling payment transaction Kredivo reader connection and GPS location. Before doing payment, make sure it updates the location because location data is needed for payment transactions. Then make sure the reader companion is connected for payment transactions.


ICLKredivoHandler
MethodDescription
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(CLPayment 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
doCheckKredivoStatusthis 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)
doPrintKredivoQRthis function to print QRCode

3.4.1.21 ICLKredivoService

ICLKredivoService is a protocol provided by ICLKredivoHandler. it will return a response through the delegate method whenever it's success or error. make sure that protocol is placed in class and set a delegate from ICLKredivoHandler before sending the data. The ICLKredivoService interface has methods/callbacks.


ICLKredivoServicee
MethodDescription
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

3.4.1.22 ICLNobuQRHandler

ICLNobuQRHandler is a class for handling payment transaction Nobu reader connection and GPS location. Before doing payment, make sure it updates the location because location data is needed for payment transactions. Then make sure the reader companion is connected for payment transactions.

ICLNobuQRHandler
MethodDescription
doStartHandlerNobuQris()this function is used to start with QRISPayment
doResumeHandlerNobuQris()this function is used to resume activity QRISPayment
doStopHandlerNobuQris()this function is used to stop activity QRISPayment
doPayNobuQris(CLPayment payment);this function is used to process transaction payment QRISPayment (Nobu)
doPayNobuQris(CLPayment payment, LocationUpdater locationUpdater, LocationModel locationModel);this function is used to process transaction payment QRISPayment (Nobu) with location as parameter to remove the need of invoking doStartGoPayHandler beforehand
doCheckStatusNobuQris(CLPaymentResponse paymentResponse);this function is used to check status transaction payment QRISPayment (Nobu)
doPrintQRContent(Bitmap qrCode)this function to process print qrcode
doPrintReceiptNobuQris(CLPaymentResponse paymentResponse);this function to process print receipt after status transaction Approved (100)
doVoidNobuQris(String userName, String password, CLPaymentResponse paymentResponse);this function is used to process void payment

3.4.1.23 ICLNobuQRService

ICLNobuQRService is a protocol provided by ICLNobuPayQRHandler. it will return a response through the delegate method whenever it's success or error. make sure that protocol is placed in class and set delegate from ICLNobuQRHandler before sending the data. The ICLNobuQRService interface has methods/callbacks.

ICLNobuQRService
MethodDescription
onNobuQRPaymentSuccess(CLPaymentResponse paymentResponse);Callback when generate qrpayment is success
onNobuQRPaymentError(CLErrorResponse errorResponse);callback when generate qrpayment is fail/Error
onNobuQRCheckStatusPaymentSuccess(CLPaymentResponse paymentResponse);callback when status transaction is Success
onNobuQRCheckStatusPaymentError(CLErrorResponse errorResponse);callback when status transaction is error
onPrintingSuccess(CLPrinterCompanion printerCompanion);callback printing receipt is success
onPrintingError(CLErrorResponse errorResponse);callback printing receipt is error/fail
onNobuQRVoidPaymentSuccess(CLVoidResponse voidResponse);callback when status void transaction is success
onNobuQRVoidPaymentError(CLErrorResponse errorResponse);callback when status void transaction is error