Class
Name | Description |
---|---|
|
Extends |
Special tender parameter
Name | Type | Description |
---|---|---|
specialTender |
SpecialTender | Holds tender attributes. |
Use the SpecialTenderBuilder to create the SpecialTender object:
private SpecialTender buildSpecialTender() {
SpecialTender specialTender = new SpecialTender(merchantAccount,
merchantReference,
"balanceInquiry",
"goldsmithscard",
currency,
amount);
return specialTender;
}
SpecialTender specialTender = buildSpecialTender();
Instantiate special tender options
Name | Type | Description |
---|---|---|
specialOptions |
SpecialOptions | Holds tender attributes. |
Parameters
Name | Type | Required | Description |
---|---|---|---|
|
String |
Type of gift card transaction (Redeem, which uses a card balance to pay for an item, Load, which loads a balance to a card, and Balance Inquiry which returns the current balance of the card).
| |
|
String |
The type of payment method, in this case gift cards. For example, Givex, SVS, EagleEye.
| |
|
String |
Shopper identification (used for omnichannel digital customer recognition; minimum length three characters). | |
|
String |
Shopper identification (used for omnichannel digital customer recognition). | |
|
String |
The transaction reference provided by the Merchant (reported in the plataforma de pagamentos da Adyen). | |
|
String |
The transaction reference provided by the Merchant (reported in the plataforma de pagamentos da Adyen). | |
|
long |
The transaction currency. | |
|
String |
The transaction amount in minor units (100 is 1.00 with EUR). The Amount field should be a strong typed field with a string for currency code and a number (long) for the minor digits value (similar to the current API (of the terminal)). | |
|
SpecialTenderOptions |
Holds tender attributes.Activate, load, or refund a balance to a card by creating a special tender and passing the following values as the
The activate and load values can be piped to chain the tasks by passing "activate|load". redemptionType as a special option.
The cashback and deactivate values can be piped to chain the tasks by passing "cashback|deactivate". | |
|
Boolean |
Specifies that the POS handles and prints receipts. If omitted, it is required that the PED prints the receipt. If there is no printer unit, the transaction will fail. |
Instantiate specialOptions
by assigning it to the result of the SpecialTender getterspecialtender.getSpecialOptions()
SpecialOptions specialOptions = specialTender.getSpecialOptions();
Entry modes
The gift card can be presented in three ways:
- Swipe: the gift card is read using a magnetic stripe reader.
- MKE on terminal: the card number is manually entered on the payment terminal. The tender should specify that it expects keyed entry on the terminal, and a card mask should be provided.
- MKE on POS app: scan a barcode on the back of the card from the POS app. In this scenario, the card number, card mask, and expiry should be provided in special options.
You can specify entry modes by passing special tender options. See Gift Cards.
Use put to set special options
Name | Description |
---|---|
|
Allows you to add a special option as a key value pair. |
Add special options parameters to the specialTender
using the specialOptions.put
method.
Name | Type | Required | Description |
---|---|---|---|
|
String |
The scanned number from the gift card. If this number:
| |
|
String |
The entry mode for the transaction.You can select from two entry modes:
|
specialOptions.put("cardNumber", "60362821657200117610");
Call the method
Name | Description |
---|---|
|
Creates a tender using a number of attributes. |
ped.runSpecialTenderSync(specialTender);
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.
Callbacks
Name | Description |
---|---|
tenderPrintReceiptCallback
|
Returns the receipt for printing, and requests that the POS confirms it has received the receipt. |
progressCallback
|
Reports the progress on a running tender |
finalCallback
|
When the system finishes processing the tender, it triggers the final state callback. |