No momento, esta página não está disponível em português
Point-of-sale icon

Handle the Additional Data callback

 Callback

NameDescription
tenderAdditionalDataCallback

Invoked after the shopper inserts or swipes a card. Uses the card number as a key to retrieve additional data about the cardholder, like loyalty and customer recognition data. 

AdditionalData defined by a tender will contain only the data coming from the terminal. To provide additional data to the terminal, use the operations createTender and confirmAdditionalData passing an extra parameter.

Create the tender with the tender option  getAdditionalData to trigger the tenderAdditionalDataCallback.

Parameter

Name Description
tender Object that holds the tender attributes.

Callback Response Attributes

Name Description
additionalData Additional data returned by Adyen.  The  additionalData  object is a generic container that can hold extra response fields.
tenderReference Transaction reference provided by the PED (reported in Adyen back end).
tenderState Transaction state.
adyenResult Transaction result details.

Confirming and providing Additional Data for Credit Cards

Method

Name Description
confirmAddionalData Provides additional data to the terminal.

Parameters

Name Type Required Description
tender Tender -white_check_mark- Use this as a key to confirm additional data.
modification boolean -white_check_mark- Input parameter of confirmAddionalData. When sending this call it is possible to modify some of the fields of the tender, i.e amount. The parameter modification lets the caller specify if the library should expect updates on the tender object or not.

Confirming and providing Additional Data for Gift Cards

Method

NameDescription

confirmAdditionalDataCardOperation

Provides additional data to the terminal.

Parameters

Name Type Required Description
giftCard GiftCard -white_check_mark- Use this as a key to confirm additional data.
modification boolean -white_check_mark- Input parameter of the confirmAdditionalDataCardOperation. When sending this call it is possible to modify some of the fields of the tender, i.e amount. The parameter modification lets the caller specify if the library should expect updates on the tender object or not.

Determine the current and final tender state

Adyen provides a method to determine the current, or final, tender state. For more information, see Determine the current and final tender state - JNI.