Header Parameter request_hash generation process below:
First, the secret-key value which you have passed "f74c50a1-f705-4634-9cda-30a477df91b7"; is not a value of secret-key this is the key which is encoded to generate the secret-key and secret-key-timestamp.
Please generate the request hash properly. Please check the request hash generation code again. Before generating the request hash you need to generate a string which will be generated by concatenating some parameters in a particular manner only. You cannot change the sequence.
Sequence of concatenated string
secret_key_timestamp + utility_acc_no + amount + user_code
After generating the concatenated string please follow the following procedure :
- Encode your authenticator password using the base 64. Authenticator password will be the key which you have used for the secret-key generation. Authenticator password for the staging server is "f74c50a1-f705-4634-9cda-30a477df91b7"
// Initializing key in some variable. You will receive this key from Eko via email
$key = "f74c50a1-f705-4634-9cda-30a477df91b7";
$encodedKey = base64_encode($key);
After encoding the key, you need to hmac the concatenated string and encoded_key using hmac256.
$signature_req_hash = hash_hmac('SHA256', $data, $encodedKey, true);
In the $data you need to send the concatenated string.
After hmac , you need to again encode the result using the base64.
$request_hash = base64_encode($signature_req_hash);
Final result after encoding will be the request_hash.
Please make sure that you are generating the request_hash in this manner only.
For MSEB Operator:
postalcode parameter needs to be passed. The value of this parameter will be the pincode.
Check parameters required to pass in the body from that get operators info API.
Parameters name should be exactly same as param_name asked in operator info API
Value passed for request body should adhere param_type and regex
High Commission (Offline)
This will allow API partner to send fetch bill and pay bill transaction via new high commission channel parallel to existing instant channels. Note that it will only work for billers that has high_commission channel available to them. You can check that in fetch biller details API response. Note that high commission channel is parallel to that of regular instant channel. It will not affect transaction flow (including old request structure) from existing regular channel.
hc_channel is optional parameter; you can pass its value as 1 to choose high commissions channel for you transaction otherwise it will default channel as instant. Please note that high commission channel might take upto 6 hours to complete transaction on biller side.