Class coreapisalelistener

Inheritance diagram for com.payments.core.common.contracts.CoreAPISaleListener:

com.payments.core.common.contracts.CoreAPIListener

Public Member Functions

void onSaleResponse (CoreSaleResponse response)
void onSignatureRequired (CoreSignature signature)
void onOfflineSaleRequest (CoreSale saleRequest)
void onRequestSetAmount (CoreSale coreSale)
void onGiftCardDataReturned (HashMap< String, String > giftCardData)
Public Member Functions inherited from com.payments.core.common.contracts.CoreAPIErrorListener
void onError (CoreError error, String message)

Detailed Description

Listener used for sale events

Member Function Documentation

onGiftCardDataReturned()

  • void com.payments.core.common.contracts.CoreAPISaleListener.onGiftCardDataReturned
  • (
  • HashMap< String, String >
  • giftCardData
  • )

Gift card data.

Parameters

  • giftCardData
  • Gift card data.

onOfflineSaleRequest()

  • void com.payments.core.common.contracts.CoreAPISaleListener.onOfflineSaleRequest
  • (
  • CoreSale
  • saleRequest
  • )

Fires after offline transaction has been processed in response to ProcessSale method.Contains a coreSale request.

Parameters

  • saleRequest
  • contains sale object

onRequestSetAmount()

  • void com.payments.core.common.contracts.CoreAPISaleListener.onRequestSetAmount
  • (
  • CoreSale
  • coreSale
  • )

Fires when delayed auth is enabled and the amount need to be set here before calling confirmAmount.

Parameters

  • coreSale
  • contains coreSale object

onSaleResponse()

  • void com.payments.core.common.contracts.CoreAPISaleListener.onSaleResponse
  • (
  • CoreSaleResponse
  • response
  • )

Fires after transaction has been processed successfully in response to processSale method.Contains transaction response object from the server.

Parameters

onSignatureRequired()

  • void com.payments.core.common.contracts.CoreAPISaleListener.onSignatureRequired
  • (
  • CoreSignature
  • signature
  • )

Fires when signature is required for the transaction to be processed.

Parameters