Fixed type issue with cookie value and cookie deletion on successful payment.