thank you, what i want to accomplish is for the user to go make payment to another website through an APIand then afterwards redirect the user back to form to submit it
You need to follow the directions supplied by your API documentation. API's require an endpoint. The AJAX you build requires jQuery to monitor your form fields and trigger the call to the API server. The API server is connected through a custom PHP function you need to build. To make the actual callback, you use the WordPres HTTP Curl class. https://developer.wordpress.org/reference/classes/wp_http_curl/. If you need to consult a developer, please see https://formidable-masterminds.com/developers-directory/
Please login or Register to submit your answer