I am in the process of migrating my website from Drupal 6 (done before 2008) to WordPress 5.1 on WPEngine which is almost done.
I want to keep all product pages on my new WordPress website.
So when someone goes to the product page, it’ll link them to the InfusionSoft app payment page and once the payment is finalized it’ll take them to a series of upsell products on my WordPress site or on other sub-domain also powered by WordPress (WPEngine).
Is there a way to get all orders on successful payment to be sent to a script on another of my servers so that I can track down all these and save to my MySQL database and finally send a single email containing all the products+upsells the customer purchased ?
I can see that InfusionSoft supports webhooks : https://developer.infusionsoft.com/docs/rest/#!/REST_Hooks/verify_a_hook_subscription
Can I achieve what I want via the above ? The server to which will have the endpoint is another subdomain on DigitalOcean with the latest LAMP stack.