Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Order paid hook for own licence server integration › Reply To: Order paid hook for own licence server integration
November 5, 2020 at 7:04 pm
#81844
Keymaster
You can post the payment data to another script by using the following feature:
Go to the following settings area to enable the IPN forwarding:
WP eStore Settings -> 3rd Party Integration -> POST IPN to a 3rd party application
Alternatively, we have a WordPress action hook that you can use too (if you want to handle this via another custom plugin). Here is an example of how to use this hook:
add_action ('eStore_product_database_updated_after_payment', 'my_custom_tweak', 10, 2);
function my_custom_tweak ($payment_data, $cart_items)
{
//Do your custom stuff here
}
The $payment_data array will contain information that you can use to also query the customers database of eStore and get additional data for that transaction.