Thank you for reporting a bug to Unity.
We have investigated the issue, while it reproduces on 5.4.0 and 5.4.1 versions of Purchasing package, it no longer reproduces in 5.4.2.
As such please upgrade your package version to 5.4.2.
If this issue reproduces to you in a newer version, please reply here or report a new bug.