My app consists of various form screen where user selects options and follow the logic workflow. Then it will take it to the stripe payment where user will pay the amount which is calculated in accordance with their answers.
My issue is that if user makes a mistake and goes back:-
Previous choice prices are added to the total (this is incorrect, as if they go back these screen prices should not be added - happens if they go back multiple screens as database has been updated for those screens)
Once user goes to the screen where they want to change the answer, User selects another option but it still takes them to the next screen linked to the previous incorrect option chosen
Note: price is not just based on option chosen but also the quantity e.g. option B chosen with 25 quantity.
Please help. Getting bad reviews