--- title: "Handle the Additional Data callback" url: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/java-native-interface-integration/key-steps-jni/process-a-basic-transaction-jni/handle-the-additional-data-callback-jni" source_url: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/java-native-interface-integration/key-steps-jni/process-a-basic-transaction-jni/handle-the-additional-data-callback-jni.md" canonical: "https://docs.adyen.com/point-of-sale/classic-library-deprecation/classic-library-integrations/java-native-interface-integration/key-steps-jni/process-a-basic-transaction-jni/handle-the-additional-data-callback-jni" last_modified: "2026-05-23T12:56:20+02:00" language: "en" --- # Handle the Additional Data callback [View source](/point-of-sale/classic-library-deprecation/classic-library-integrations/java-native-interface-integration/key-steps-jni/process-a-basic-transaction-jni/handle-the-additional-data-callback-jni.md) ##  Callback | Name | Description | | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `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-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Use this as a key to confirm additional data. | | `modification` | boolean | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-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 | Name | Description | | ------------------------------------ | ----------------------------------------- | | `confirmAdditionalDataCardOperation` | Provides additional data to the terminal. | ## Parameters | Name | Type | Required | Description | | -------------- | -------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `giftCard` | GiftCard | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-white_check_mark-") | Use this as a key to confirm additional data. | | `modification` | boolean | ![-white\_check\_mark-](/user/data/smileys/emoji/white_check_mark.png "-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](/point-of-sale/classic-library-deprecation/classic-library-integrations/java-native-interface-integration/key-steps-jni/process-a-basic-transaction-jni/determine-the-current-and-final-tender-state-jni).