"Cannot redeclare class XXXCore"

"Cannot redeclare class XXXCore"
This error sometimes appear when we pay by check or transfer.

Adding some require_once here instead of require solve the error for me.