This is very good question; from the application point of view you should wait until the beta code will be invalid and then you will enter the code via "Enter voucher". In real world please try to delete data of the application, disconnect binded google account and insert the code on purchase screen. Anyway, thank you for reporting this.