Check Balance API
The Check Balance API can be used to fetch detail of the Sodexo card with the source ID.
Step 1: Set parameters
MerchantWebService merchantWebService = new MerchantWebService();
merchantWebService.setKey(merchantKey);
merchantWebService.setCommand(PayuConstants.CHECK_BALANCE);
merchantWebService.setVar1(sodexoSourceId); // This parameter must contain the Sodexo Source ID
merchantWebService.setHash(HashGenerationUtils.generateHashFromSDK(hashData, salt));
Step 2: Handle response
@Override
public void onCheckBalanceResponse(PayuResponse payuResponse) {
Log.d(TAG, "onCheckBalanceResponse: " + payuResponse.getRawResponse());
}
Updated 3 months ago