I am creating a Donation Form that links to an online credit card processor. I need the form to send the donor to a new page where either a confirmation message is displayed or an error message based on the returned fault code (invalid credit card number, decline, etc.) by the online processor. If the online processor sends a fault I would like to display/explain the error as well as have a link back to the donation page with the previous input fields auto populated based on the previously submitted data.
Currently I am using the "gform_post_submission" function to submit the data to the online processor but the entry is still being submitted and thus a notification email is being sent (to admin) as well as a confirmation message/page/redirect is happening based on form settings. How might I go about this as I'm a bit lost.