only run afterSuccessfulPayment if the model is set