doTransaction method initiates and processes payment transactions within the TweezerComm protocol. It enables client applications, such as point-of-sale (POS) systems or electronic cash registers (ECRs), to interact with the Agamento payment terminal for secure transaction execution.
This method supports multiple transaction types, including:
- Regular Transactions: Standard payments using credit cards or closed-loop payment methods.
- Refunds: Partial or full refunds of previous transactions.
- Pre-Authorizations: Reserve a specified amount on a customer’s card for later confirmation.
- Deferred Payments: Approving transactions even in cases where there is no immediate network connectivity.
- MOTO (Mail Order/Telephone Order) Transactions: Processing card-not-present transactions securely.
- Pre-Authorization Completion and Cancellation: Completing or voiding previously authorized transactions.
Request
JSON-RPC 2.0All methods in TweezerComm follow a JSON-RPC 2.0 structure. See Get Started for more details on how the requests are structured and sent.
- The
methodfield needs to be set todoTransaction. - The service must be set to
ashraitin theparams.
Request Parameters
The table below describes the parameters of the request:| Name | Type | Description |
|---|---|---|
vuid | string | Vendor (client) unique transaction identifier. |
amount | integer | Amount in cents. |
tranCode | integer | The transaction code. Below are the possible values for this parameter:
1: Single Step Transaction
2: Refund (Partial refund is supported)
3: Pre Authorization
4: Deferred
5: MOTO
6: Complete Pre Authorization
7: Cancel Pre Authorization |
tranType | integer | The transaction type code. Below are the possible values for this parameter:
1 - Regular
3 - Forced Transaction
6 - Cash Back
7 - Cash
30 - Balance
53 - Refund |
originalTransactionId | string | The original transaction ID, this parameter is used when refunding a transaction. |
pan | string | Card number (PAN) for MOTO transactions. |
exp | string | Card expiration date. |
cvv | string | Card verification value (3 digits). |
apmCode | integer | Additional payment method (not EMV). Below are the possible values for this parameter:
2: Nayax Prepaid
4: 10BIS
5: Cibus
9: Multipass
28: Goodi |
cardNumber | string | The card number is for the MOTO payment method (not EMV). Mandatory for MOTO. Irrelevant for the rest of the payment methods |
productInfo | string | Send product info to DCS. |
Response
A successful request will return a response similar to the one in the code block below:Response Parameters
Below is a table with all the possible response parameters and their description:| Name | Type | Description |
|---|---|---|
statusCode | integer | The status of the operation. 0 indicates success. |
statusMessage | string | A message describing the status, such as “OK”. |
mutag | integer | The card brand. |
solek | integer | The acquirer. |
manpik | integer | The card issuer. |
uid | string | The transaction unique identifier. |
posEntryMode | integer | POS Entry Mode, type of card transaction. Values include: 0 (MSR), 5 (CTLS MSR), 40 (Contact EMV), 50 (Phone), 51 (Signature only), 80 (Fallback (err)), and 81 (Fallback (no AID)). |
cardNumber | string | The masked personal account number (PAN). |
rrn | string | Transaction authorization number from the authorized entity. |
issuerAuthNum | string | The issuer authorization number. |
acquirerMerchantID | string | The merchant ID in the acquirer system. |
authCodeManpik | integer | Code of authorization. Values include:
0 (Unauthorized),
1 (Authorized by issuer),
2 (Declined by issuer),
3 (Stip approved),
4 (Stip declined),
5 (Voice approval),
6 (Voice declined),
7 (Approved pre-auth),
8 (Approved by card). |
gatewayToken | string | The gateway token for the card. |
appVersion | string | The payment application version. |
retailerId | string | The terminal retailer ID. |
ecrNo | string | The POS identifier. |
vuid | string | The vendor unique identifier. |
tranCode | string | The transaction code. |
merchantReceipt | array of key/value | The merchant receipt data to print or save. |
customerReceipt | array of key/value | The customer receipt data to print. |