Reversal Cloud-Authentication
Reversal
Reversal
The reversal can be run by calling the reversal method.
revert
suspend fun revert( reversalData: ReversalData, operationListener: OperationListener )
The reversal method takes an instance of ReversalData as an argument and an operationListener, which will propagate the operation outcome to the caller application.
ReversalData
data class ReversalData( val amount: String?, <br> val timestamp: String?, <br> val callerName: String?, <br>
ReversalData
The ReversalData is a class used for holding information related to a reversal operation. Each property in the class corresponds to a different aspect of the payment. ReversalData class properties are detailed below:
Name parameter | Description | Type | Mandatory |
---|---|---|---|
amount | Represents the amount of reversal in cents. | String | yes |
timestamp | Represents the timestamp of the reversal | String | yes |
callerName | Represents the name of the caller initiating the reversal | String | yes |
Represents the email associated with the reversal | String | yes | |
sms | Represents the SMS information associated with the reversal | String | yes |
callerTrxId | Represents the transaction ID associated with the caller | String | yes |
terminalId | Represents the ID of the terminal | String | yes |
isSendTicket | Flag that enables the display of the send receipt button on transaction result | Boolean | yes |
isUrlTicket *** | Indicates whether the ticket is a URL link | Boolean | yes |
autoClose | Flag that hides the buttons on transaction result and allows the application to automatically go back to caller application ONLY for not retryable | Boolean | no (default false) |
*** Available only for MobilePOS
(SoftPOS) Example response easypay://reversal?operationType=REVERSAL&callerTrxId=1747399896594&result=0&amount=000000000450&f30=000000000450&F42=1000000595940&f12=145126&f11=000247&f55=9F3602015B9F10120110800005220000000000000000000FF9F35012195050000008001&CT121=C.SO SEMPIONE 55, 20145, MILANO (MI)&f13=0516&CT120=NEXI SOFTPOS OPERATION&f38=H50716&9F14=1420&f37=513614271424&f39=400&CT118=978&CT117=Online&CT116=00034&CT115=Contactless&CT114=NEXI Core&CT112=************6313&CT111=0&acquirerId=909517&CT119=Grazie e arrivederci&f41=38032131&f43=NEXI SOFTPOS OPERATION C.SO SEMPIONE 55, 20145, MILANO (MI)&f42=1000000595940&CT110=2025-05-16T14:51:51+02:00&f04=000000000450&CT107=14:51&CT106=16/05/2025&CT105=0200&CT104=NEXI SOFTPOS OPERATION C.SO SEMPIONE 55, 20145, MILANO (MI)&CT103=513614271424&CT102=A0000000041010&CT101=24&CT123=9F3602015B95050000008001&CT100=6313&CT109=Debit Mastercard&CT108=Mastercard&terminalId=38032131&autoClose=false flg=0x10400000 cmp=com.example.easypay/.ui.redirect.RevertResultActivity }
(MobilePOS) Example response app2appDemo://reversalResult?callerTrxId=1234&operationType=REVERSAL&amount=200&result=0&actionCode=000&pan=******7819&transactionType=CLI&authorizationNumber=870316×tamp=0407250932&resultDescription=TRANSAZIONE APPROVATA&cardTypeCVM=2&acquirerId=00000000034&stan=000009&operationNumber=000027&acquirerName=NEXI&terminalId=37063166&merchantId=1829312&urlTicket=https://mpos.nexi.it/r?id=DICJHGMNIJKLOUOTAIEIEOJJ