I'm facing an issue with my Stripe payment actions chain. Currently, payments process correctly when all information is entered accurately, and the subsequent action chain executes as expected. However, the challenge arises when a payment is canceled or fails. In these situations, the payment chain, which involves backend calls to update Firebase and navigating to the home screen, continues to execute even when the payment is not approved.
I'm looking for guidance on how to ensure that the two actions following a Stripe payment are executed only after the payment has been successfully approved. If the payment is not approved, I want to ensure that the actions do not execute.