Braintree plugin payment state

hi guy’s I’m using braintree plugin and i wondering about
How will my App know the User has payed so that I can forward him to another page?