Using MD5 and Having Trouble Receiving Payment After Migration?
This guide is for merchants who have not yet updated their integration from MD5 to SHA-256.
If your website or payment integration is still using MD5, you may experience payment processing issues after migrating to senangPay-DOKU.
Don't worry. These issues can be resolved by updating your integration to SHA-256. Refer to the scenarios below to identify the issue and follow the recommended recovery steps.
|
Scenario |
Issues |
What You May Experience |
How to Resolve |
||||||||||
|
Scenario 1: Merchant Uses Checkout API (Manual Integration)
|
Payments are unable to proceed after migration. |
⚠️ Impacts on your customer end. Customers may see an error message or a blank page during checkout. Customers may abandon their purchase due to the interruption. |
To continue processing payments successfully, please update your integration to use the SHA-256 hashing algorithm and generate the secure hash using the following sequence:
For example if the values for the parameters are as below:
The string to be hashed is $str = 53-784Shopping_cart_id_3024.5056 which will generate the hash value of :
|
||||||||||
|
Scenario 2: Merchant Uses Direct API Integration |
Payments are unable to proceed after migration. |
⚠️ Impacts on your customer end. Customers may encounter an error message or blank page during checkout. Payment transactions may fail to complete successfully. Orders may not be processed due to payment failures.
|
To continue accepting payments without interruption, please update your integration to use the SHA-256 hashing algorithm. The secure hash should be generated using the following sequence:
|
||||||||||
|
Scenario 3: Merchant Uses Digital Catalog |
Callback URL may be affected.
Payment status may not be updated correctly in your system. |
⚠️ No impact on your customers. The issue only affects your system. Customers can still complete their payments successfully and no errors are displayed to customers during checkout. However, your system may not receive or process DOKU's payment callback notification correctly. As a result, transaction statuses in your system may not be updated automatically. |
Please ensure your callback endpoint is updated to support SHA-256 hash verification. Your system should validate the SHA-256 hash returned by DOKU before processing and updating the transaction status.
Example: $secretKey = '123-456'; For merchant with custom params: // Result: // 64c54bb8c1f1955ef6f4a8fc3d9f810d1490239d7e5dda82f030c2da6b99f0f6 |
||||||||||
|
Scenario 4: Merchant Uses Payment Link |
URL set by merchant may be affected. |
⚠️ No impact on your customers. The issue only affects your system.
Customers can complete payments successfully and no errors are displayed during checkout.
|
Please update your callback endpoint to use SHA-256 hash verification instead of MD5. Your system should validate the SHA-256 signature returned by DOKU before processing the payment notification and updating the transaction status. Example: $secretKey = '123-456';
|