It's a duplicate transaction because the session is not being cleared.
To clear the session, you need to close your browser completely before testing.
In the future, you will not need to close the browser completely however since the code on the success page will destroy the session so new one will get created.