OK, here is what I've got so far:
I am wanting to run this function to validate that the online donation goes through with my online payment processor and if not to display a custom error message:
If the payment info goes through then I would like to show the confirmation message assigned by the form notifications and if not then I want the custom message to be displayed via the function change_message function. I have used some of the code from your sample code found here (http://pastie.org/1769048) . What kind or response is the $is_valid variable looking for from the process_payment function? Is it looking for true/false? I currently am getting an error message no matter if the payment is valid or not.....its throwing an error either way. Any advise?
Posted 13 years ago on Monday September 12, 2011 |
Permalink