Use the OmniKassa response codes class from the WordPress Pay OmniKassa library.