Skip to content

Conversation

@Abraham-Flutterwave
Copy link
Contributor

WooCommerce merchants are currently unable to utilize the redirect integration method on their stores. This issue stems from a bug related to the handling of amounts with trailing zeros during the checksum verification process.

image

Issue
The presence of trailing zeros in the amount is causing the checksum validation to fail. This is due to the way WooCommerce processes and formats the amount, which impacts the hash generation.

Fix
To resolve this, cast the amount from WooCommerce to a float before generating the checksum hash. This will ensure that the trailing zeros are removed, and the hash is correctly calculated.

@Abraham-Flutterwave Abraham-Flutterwave added the bug Something isn't working label Jan 9, 2025
@Abraham-Flutterwave Abraham-Flutterwave self-assigned this Jan 9, 2025
@Abraham-Flutterwave Abraham-Flutterwave added bug fix and removed bug Something isn't working labels Jan 9, 2025
@corneliusyaovi corneliusyaovi merged commit 3fce663 into dev Jan 9, 2025
9 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants