Class
Name | Description |
---|---|
|
Extends |
Special tender parameter
Name | Type | Description |
---|---|---|
specialTender |
SpecialTender | Holds tender attributes. |
Use the SpecialTenderBuilder to create the SpecialTender object:
SpecialTender.SpecialTenderBuilder(merchantAccount,
merchantReference,
"payment",
"alipay",
currency,
amount)
.tenderOptions(tenderOptions)
.specialOptions(specialOptions)
.build();
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 wallet app (to be provided only for Flow 3: Cash register scans Shopper barcode) | |
|
String |
The entry mode for the transaction. In this case, use the value "Keyed". |
specialOptions.put("cardNumber", "60362821657200117610");
Instantiate special tender options
Name | Type | Description |
---|---|---|
specialOptions |
SpecialOptions | Holds tender attributes. |
Parameters
Name | Type | Required | Description |
---|---|---|---|
|
String |
Type of transaction.
| |
|
String |
The type of payment method, in this case wallets.
| |
|
String |
Shopper identification (used for omnichannel digital customer recognition). | |
|
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.
| |
|
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 getter specialtender.getSpecialOptions()
SpecialOptions specialOptions = specialTender.getSpecialOptions();
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 |
---|---|
progressCallback
|
Reports the progress on a running tender |
tenderPrintReceiptCallback
|
Returns the receipt for printing, and requests that the POS confirms it has received the receipt. |
finalCallback
|
When the system finishes processing the tender, it triggers the final state callback. |