We are using Payment connector to make the Sale payment transaction via the following code:
SaleRequest request = new SaleRequest();
request.setExternalId(ExternalIdUtils.generateNewID()); //value returns in externalPaymentId
Map<String, String> extraParam = new HashMap<>();
In the SaleResponse we are getting null value for “externalReferenceId” while we are sending the value for it in the SaleRequest with extras.
Can you please suggest a way to find the value in “externalReferenceId” field in the response of payment transactions by using a payment connector?
Also, explain the use of request Id during the transaction. We are sending it with the request but not getting it in the response.
Note: We can get the value for “externalReferenceId” in the response if we will use Intents.ACTION_SECURE_PAY with Intents.EXTRA_EXTERNAL_REFERENCE_ID to make the payment but clover is recommending the Payment connector to make the payment.