Fixed problem with duplicate payment processing due to race condition between notification and redirect.