The Sale Reference ID is a data that can be passed on and transferred from an incoming request. In order to
METHOD 1:
Following the recent demand, the Sale Reference ID is now accessible directly in the :
public byte[] preparedReversalData;
if reversal request contains SaleReferenceIDpublic byte[] preparedPaymentData;
if payment request contains SaleReferenceID
The Sale Reference ID is then checked in Arkoslib and sent to Amanacq if present.
So nothing is required on your side.
METHOD 2:
To display such data in the message response from Arkos, this one needs to be added to the Acquirer Proprietary Data directory.
...
Code Block | ||
---|---|---|
| ||
public static PaymentParams createFromRetail(NexoRequest req) { PaymentParams params = new PaymentParams(); if (req instanceof PaymentRequest) { PaymentRequest paymentReq = (PaymentRequest) req; String saleReferenceID = paymentReq.SaleReferenceID; params.paramTree = TlvTree.FromRaw(paymentReq.preparedPaymentData); TlvTree acquirerProprietaryData = params.paramTree.AddChild(0xFFBF2FParams.ACQUIRER_PROPRIETARY_DATA); acquirerProprietaryData.SetAscii(0xDFCF01Params.SALE_REFERENCE_ID,saleReferenceID); ... } else if (req instanceof ReversalRequest) { ... } } else { ... } ... } |
...