Ajax needed?
-
Hi
I want to get a response from server when clicking on the submit-button (in the donation frontend form).
I’m able to use filter
give_donation_form_required_fieldsto do this. Doing this way using a modal form allows the error to be shown directly under the submit-button in the donation form. If I do anset_error()in thegive_gateway_[gateway]– action then the page is reloaded and the error is not shown in the modal form.When using
give_donation_form_required_fieldsI can only test certain things on the external server. What I want to is to test an actual payment to the external gateway server and get a response that is output on the modal form if an error occurs. This requires the page not be reloaded, but it is reloaded when processing the actual payment.Do I need ajax doing this? Or are there any “prepayment” filter or so? (I need the purchase data to do the actual testing to the external server)
The topic ‘Ajax needed?’ is closed to new replies.